Skip to content

Commit 1a96e52

Browse files
committed
fix test assert
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
1 parent 52fc238 commit 1a96e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Phinx/Db/Adapter/SqlServerAdapterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,14 +687,14 @@ public function testChangeColumnDefaultStringBoolean(): void
687687
$table->addColumn('column1', 'boolean', ['default' => 'true'])
688688
->save();
689689
$columns = $this->adapter->getColumns('t');
690-
$this->assertSame(1, $columns['column1']->getDefault());
690+
$this->assertSame(true, $columns['column1']->getDefault());
691691
$newColumn1 = new Column();
692692
$newColumn1
693693
->setType('boolean')
694694
->setDefault('false');
695695
$table->changeColumn('column1', $newColumn1)->save();
696696
$columns = $this->adapter->getColumns('t');
697-
$this->assertSame(0, $columns['column1']->getDefault());
697+
$this->assertSame(false, $columns['column1']->getDefault());
698698
}
699699

700700
public function testDropColumn()

0 commit comments

Comments
 (0)