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

Public Member Functions

 canParseTableOptionsDataProvider ()
 
 canParseTableOptions (string $tableOptionsSQL, array $expectedTableOptions)
 

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 table options

Definition at line 27 of file TableOptionsTest.php.

Member Function Documentation

canParseTableOptions ( string  $tableOptionsSQL,
array  $expectedTableOptions 
)
Test:
canParseTableOptionsDataProvider
Parameters
string$tableOptionsSQL
array$expectedTableOptions

Definition at line 148 of file TableOptionsTest.php.

References TableOptionsTest\createSubject().

canParseTableOptionsDataProvider ( )

Each parameter array consists of the following values:

  • table options SQL fragment
  • expected options array
Returns
array

Definition at line 36 of file TableOptionsTest.php.

createSubject ( string  $statement)
protected

Parse the CREATE TABLE statement and return the reference definition

Parameters
string$statement
Returns
AbstractCreateStatement|CreateTableStatement

Definition at line 165 of file TableOptionsTest.php.

Referenced by TableOptionsTest\canParseTableOptions().