Skip to content

Commit 43e3354

Browse files
keulinhomorozov
authored andcommitted
Fix tests
1 parent 9510d3f commit 43e3354

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/Functional/Schema/SchemaManagerTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,11 @@ public function testIntrospectTableWithDotInIndexNames(): void
277277
->setTypeName(Types::INTEGER)
278278
->create(),
279279
)
280+
->setPrimaryKeyConstraint(
281+
PrimaryKeyConstraint::editor()
282+
->setUnquotedColumnNames('id')
283+
->create(),
284+
)
280285
->create();
281286

282287
$this->dropAndCreateTable($table);
@@ -296,13 +301,12 @@ public function testIntrospectTableWithDotInIndexNames(): void
296301
->setPrimaryKeyConstraint(
297302
PrimaryKeyConstraint::editor()
298303
->setUnquotedColumnNames('id')
299-
->setQuotedName('pk.example.id')
300304
->create(),
301305
)
302306
->setForeignKeyConstraints(
303307
ForeignKeyConstraint::editor()
304308
->setUnquotedReferencingColumnNames('user_id')
305-
->setReferencedTableName('test_user')
309+
->setUnquotedReferencedTableName('test_user')
306310
->setUnquotedReferencedColumnNames('id')
307311
->setQuotedName('fk.example.user_id')
308312
->create(),
@@ -318,7 +322,6 @@ public function testIntrospectTableWithDotInIndexNames(): void
318322

319323
$table = $this->schemaManager->introspectTable('example');
320324
self::assertCount(2, $table->getColumns());
321-
self::assertSame('pk.example.id', $table->getPrimaryKeyConstraint()->getObjectName()->toString());
322325
self::assertSame('fk.example.user_id', $table->getForeignKey('fk.example.user_id')->getName());
323326
self::assertSame('idx.example.id', $table->getIndex('idx.example.id')->getName());
324327
}

0 commit comments

Comments
 (0)