We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52fc238 commit 1a96e52Copy full SHA for 1a96e52
1 file changed
tests/Phinx/Db/Adapter/SqlServerAdapterTest.php
@@ -687,14 +687,14 @@ public function testChangeColumnDefaultStringBoolean(): void
687
$table->addColumn('column1', 'boolean', ['default' => 'true'])
688
->save();
689
$columns = $this->adapter->getColumns('t');
690
- $this->assertSame(1, $columns['column1']->getDefault());
+ $this->assertSame(true, $columns['column1']->getDefault());
691
$newColumn1 = new Column();
692
$newColumn1
693
->setType('boolean')
694
->setDefault('false');
695
$table->changeColumn('column1', $newColumn1)->save();
696
697
- $this->assertSame(0, $columns['column1']->getDefault());
+ $this->assertSame(false, $columns['column1']->getDefault());
698
}
699
700
public function testDropColumn()
0 commit comments