‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\ForeignKeyDefinitionTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\ForeignKeyDefinitionTest:

Public Member Functions

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

Static Public Member Functions

static canParseForeignKeyDefinitionDataProvider ()
 

Private Member Functions

 createSubject (string $statement)
 

Detailed Description

Tests for CreateForeignKeyDefinitionItem

Definition at line 30 of file ForeignKeyDefinitionTest.php.

Member Function Documentation

◆ canParseForeignKeyDefinition()

TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\ForeignKeyDefinitionTest::canParseForeignKeyDefinition ( string  $indexDefinition,
string  $indexName,
array  $indexColumns,
string  $foreignTableName,
array  $foreignTableColumns 
)
Test:
‪@dataProvider canParseForeignKeyDefinitionDataProvider

Definition at line 72 of file ForeignKeyDefinitionTest.php.

References TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\ForeignKeyDefinitionTest\createSubject().

◆ canParseForeignKeyDefinitionDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\ForeignKeyDefinitionTest::canParseForeignKeyDefinitionDataProvider ( )
static

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]

Definition at line 40 of file ForeignKeyDefinitionTest.php.

◆ createSubject()

TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\ForeignKeyDefinitionTest::createSubject ( string  $statement)
private

Parse the CREATE TABLE statement and return the reference definition

Definition at line 102 of file ForeignKeyDefinitionTest.php.

References $parser.

Referenced by TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\ForeignKeyDefinitionTest\canParseForeignKeyDefinition().