2 declare(strict_types = 1);
22 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
41 'CREATE TABLE aTable (aField INT);',
45 'CREATE TEMPORARY TABLE' => [
46 'CREATE TEMPORARY TABLE aTable (aField INT);',
50 'CREATE TABLE IF NOT EXISTS' => [
51 'CREATE TABLE IF NOT EXISTS aTable (aField INT);',
55 'CREATE TEMPORARY TABLE IF NOT EXISTS' => [
56 'CREATE TEMPORARY TABLE IF NOT EXISTS aTable (aField INT);',
60 'CREATE TABLE (quoted table name)' => [
61 'CREATE TABLE `aTable` (aField INT);',
65 'CREATE TEMPORARY TABLE (quoted table name)' => [
66 'CREATE TEMPORARY TABLE `aTable` (aField INT);',
70 'CREATE TABLE IF NOT EXISTS (quoted table name)' => [
71 'CREATE TABLE IF NOT EXISTS `aTable` (aField INT);',
75 'CREATE TEMPORARY TABLE IF NOT EXISTS (quoted table name)' => [
76 'CREATE TEMPORARY TABLE IF NOT EXISTS `aTable` (aField INT);',
93 $this->assertInstanceOf(CreateTableStatement::class, $subject);
94 $this->assertSame($tableName, $subject->tableName->schemaObjectName);
95 $this->assertSame($isTemporary, $subject->isTemporary);