From 411e022b48b9574b62ba69da214d353cc0fa636f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Tue, 28 May 2024 20:46:15 +0200 Subject: [PATCH] add test --- .../SchemaManagerFunctionalTestCase.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/Functional/Schema/SchemaManagerFunctionalTestCase.php b/tests/Functional/Schema/SchemaManagerFunctionalTestCase.php index cbc3f444a6b..737254b8aeb 100644 --- a/tests/Functional/Schema/SchemaManagerFunctionalTestCase.php +++ b/tests/Functional/Schema/SchemaManagerFunctionalTestCase.php @@ -369,6 +369,26 @@ public function testListTableColumns(): void self::assertIsArray($columns['baz3']->getPlatformOptions()); } + public function testListTableColumnsWithBigintColumns(): void + { + $tableName = 'test_list_table_bigint'; + + $table = new Table($tableName); + $table->addColumn('id_with_ai', Types::BIGINT); + $table->setPrimaryKey(['id_with_ai']); + $table->addColumn('foo', Types::BIGINT); + + $this->schemaManager->createTable($table); + + $columns = $this->schemaManager->listTableColumns($tableName); + + self::assertCount(2, $columns); + self::assertArrayHasKey('id_with_ai', $columns); + self::assertInstanceOf(BigIntType::class, $columns['id_with_ai']->getType()); + self::assertArrayHasKey('foo', $columns); + self::assertInstanceOf(BigIntType::class, $columns['foo']->getType()); + } + public function testListTableColumnsWithFixedStringColumn(): void { $tableName = 'test_list_table_fixed_string';