Skip to content

Commit

Permalink
Rename variable in test $type => $columnType
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Nov 23, 2023
1 parent ed8f5fc commit a83ccc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Db/Command/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ public function testAddColumn(ColumnInterface|string $type): void
$command = $db->createCommand();
$sql = $command->addColumn('table', 'column', $type)->getSql();

$type = $db->getQueryBuilder()->getColumnType($type);
$columnType = $db->getQueryBuilder()->getColumnType($type);

$this->assertSame(
DbHelper::replaceQuotes(
<<<SQL
ALTER TABLE [[table]] ADD [[column]] {$type}
ALTER TABLE [[table]] ADD [[column]] {$columnType}
SQL,
$db->getDriverName(),
),
Expand Down

0 comments on commit a83ccc9

Please sign in to comment.