Skip to content

Commit cd3a47a

Browse files
authored
Merge pull request #7200 from morozov/remove-add-columns-test
Remove redundant unit test
2 parents 5e7a0c4 + ddf4c3e commit cd3a47a

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

tests/Platforms/SQLitePlatformTest.php

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -267,39 +267,6 @@ public function testGenerateTableSqlShouldNotAutoQuotePrimaryKey(): void
267267
);
268268
}
269269

270-
public function testAlterTableAddColumns(): void
271-
{
272-
$table = Table::editor()
273-
->setUnquotedName('user')
274-
->setColumns(
275-
Column::editor()
276-
->setUnquotedName('id')
277-
->setTypeName(Types::INTEGER)
278-
->create(),
279-
)
280-
->create();
281-
282-
$diff = new TableDiff($table, addedColumns: [
283-
Column::editor()
284-
->setUnquotedName('foo')
285-
->setTypeName(Types::STRING)
286-
->create(),
287-
Column::editor()
288-
->setUnquotedName('count')
289-
->setTypeName(Types::INTEGER)
290-
->setNotNull(false)
291-
->setDefaultValue(1)
292-
->create(),
293-
]);
294-
295-
$expected = [
296-
'ALTER TABLE user ADD COLUMN foo VARCHAR NOT NULL',
297-
'ALTER TABLE user ADD COLUMN count INTEGER DEFAULT 1',
298-
];
299-
300-
self::assertEquals($expected, $this->platform->getAlterTableSQL($diff));
301-
}
302-
303270
public function testRenameNonExistingColumn(): void
304271
{
305272
$table = Table::editor()

0 commit comments

Comments
 (0)