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

Public Member Functions

 canParseReferenceDefinition (string $columnAttribute, string $table, array $columns, string $match=null, string $onDelete=null, string $onUpdate=null)
 

Static Public Member Functions

static canParseReferenceDefinitionDataProvider ()
 

Private Member Functions

 createSubject (string $statement)
 

Detailed Description

Tests for ReferenceDefinition

Definition at line 32 of file ReferenceDefinitionTest.php.

Member Function Documentation

◆ canParseReferenceDefinition()

TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\ReferenceDefinitionTest::canParseReferenceDefinition ( string  $columnAttribute,
string  $table,
array  $columns,
string  $match = null,
string  $onDelete = null,
string  $onUpdate = null 
)

◆ canParseReferenceDefinitionDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\ReferenceDefinitionTest::canParseReferenceDefinitionDataProvider ( )
static

Each parameter array consists of the following values:

  • ‪reference definition SQL fragment
  • ‪expected table Name
  • ‪array of index column definitions [name, length, direction]
  • ‪MATCH value
  • ‪ON DELETE value
  • ‪ON UPDATE value

Definition at line 43 of file ReferenceDefinitionTest.php.

◆ createSubject()

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

Parse the CREATE TABLE statement and return the reference definition

Definition at line 206 of file ReferenceDefinitionTest.php.

References $parser.

Referenced by TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\ReferenceDefinitionTest\canParseReferenceDefinition().