Skip to content

Commit

Permalink
improving tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robmorgan committed Aug 24, 2013
1 parent 1b67b1b commit 6624f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Phinx/Db/Adapter/PostgresAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ public function testAddColumnWithDefaultValue()
$table->save();
$table->addColumn('default_zero', 'string', array('default' => 'test'))
->save();
$rows = $this->adapter->fetchAll("SELECT column_default FROM information_schema.columns WHERE table_name ='table1'");
$this->assertEquals("'test'::character varying", $rows[1]['column_default']);
$columns = $this->adapter->getColumns('table1');
$this->assertEquals("'test'::character varying", $columns[1]->getDefault());
}

public function testAddColumnWithDefaultZero()
Expand Down

0 comments on commit 6624f5c

Please sign in to comment.