Skip to content

Commit c4ae845

Browse files
authored
Merge pull request #6893 from morozov/test-options-introspection-with-quoted-identifiers
Test introspection of table options with quoted identifiers
2 parents 6a2faf0 + 8b71890 commit c4ae845

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Functional/Schema/SchemaManagerFunctionalTestCase.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,7 @@ public function testQuotedIdentifiers(): void
13101310
)
13111311
->create(),
13121312
);
1313+
$artists->setComment('"Artists" table');
13131314

13141315
$tracks = new Table('"Tracks"');
13151316
$tracks->addColumn('"Id"', Types::INTEGER);
@@ -1329,6 +1330,7 @@ public function testQuotedIdentifiers(): void
13291330
)
13301331
->create(),
13311332
);
1333+
$tracks->setComment('"Tracks" table');
13321334

13331335
$this->dropTableIfExists($tracks->getObjectName()->toSQL($platform));
13341336
$this->dropTableIfExists($artists->getObjectName()->toSQL($platform));
@@ -1365,6 +1367,8 @@ public function testQuotedIdentifiers(): void
13651367
UnqualifiedName::quoted('Id'),
13661368
], $primaryKey->getColumnNames());
13671369

1370+
self::assertSame('"Artists" table', $artists->getComment());
1371+
13681372
// Foreign table assertions
13691373
self::assertUnqualifiedNameEquals(
13701374
UnqualifiedName::quoted('Id'),
@@ -1401,6 +1405,8 @@ public function testQuotedIdentifiers(): void
14011405
$this->assertUnqualifiedNameListEquals([
14021406
UnqualifiedName::quoted('Id'),
14031407
], $constraint->getReferencedColumnNames());
1408+
1409+
self::assertSame('"Tracks" table', $tracks->getComment());
14041410
}
14051411

14061412
public function testChangeIndexWithForeignKeys(): void

0 commit comments

Comments
 (0)