2 declare(strict_types = 1);
22 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
34 $subject = $this->
createSubject(
'CREATE TABLE `aTable`(checksum VARCHAR(64));');
36 $this->assertInstanceOf(CreateColumnDefinitionItem::class, $subject);
37 $this->assertSame($subject->columnName->schemaObjectName,
'checksum');
49 $subject = $this->
createSubject(
'CREATE TABLE `aTable`(aField VARCHAR(64), );');
51 $this->assertInstanceOf(CreateColumnDefinitionItem::class, $subject);
64 $createTableStatement =
$parser->getAST();
66 return $createTableStatement->createDefinition->items[0];