TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
CreateTableFragmentTest Class Reference
Inheritance diagram for CreateTableFragmentTest:
UnitTestCase BaseTestCase

Public Member Functions

 canParseCreateTableFragmentDataProvider ()
 
 canParseCreateTableFragment (string $statement, string $tableName, bool $isTemporary)
 

Protected Member Functions

 createSubject (string $statement)
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Additional Inherited Members

- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Tests for CreateTableStatement

Definition at line 27 of file CreateTableFragmentTest.php.

Member Function Documentation

canParseCreateTableFragment ( string  $statement,
string  $tableName,
bool  $isTemporary 
)
Test:
canParseCreateTableFragmentDataProvider
Parameters
string$statement
string$tableName
bool$isTemporary

Definition at line 90 of file CreateTableFragmentTest.php.

References CreateTableFragmentTest\createSubject().

canParseCreateTableFragmentDataProvider ( )

Each parameter array consists of the following values:

  • create table SQL fragment
  • table name
  • is temporary
Returns
array

Definition at line 37 of file CreateTableFragmentTest.php.

createSubject ( string  $statement)
protected

Parse the CREATE TABLE statement and return the reference definition

Parameters
string$statement
Returns
AbstractCreateStatement|CreateTableStatement

Definition at line 104 of file CreateTableFragmentTest.php.

Referenced by CreateTableFragmentTest\canParseCreateTableFragment().