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

Public Member Functions

 canParseForeignKeyDefinitionDataProvider ()
 
 canParseForeignKeyDefinition (string $indexDefinition, string $indexName, array $indexColumns, string $foreignTableName, array $foreignTableColumns)
 

Additional Inherited Members

- 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= '')
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Tests for CreateForeignKeyDefinitionItem

Definition at line 27 of file ForeignKeyDefinitionTest.php.

Member Function Documentation

canParseForeignKeyDefinition ( string  $indexDefinition,
string  $indexName,
array  $indexColumns,
string  $foreignTableName,
array  $foreignTableColumns 
)
Test:
canParseForeignKeyDefinitionDataProvider
Parameters
string$indexDefinition
string$indexName
array$indexColumns
string$foreignTableName
array$foreignTableColumns

Definition at line 76 of file ForeignKeyDefinitionTest.php.

canParseForeignKeyDefinitionDataProvider ( )

Each parameter array consists of the following values:

  • index definition SQL fragment
  • index name
  • array of index column definitions [name, length, direction]
  • foreign table name
  • array of foreign column definitions [name, length, direction]
Returns
array

Definition at line 39 of file ForeignKeyDefinitionTest.php.