Commit cc7e4fef authored by Steve Müller's avatar Steve Müller

Merge pull request #806 from zeroedin-bill/sqlsrv_functional_test_fixes

Fix broken functional test for SQL server
parents 6fb7312d 35771558
...@@ -55,7 +55,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase ...@@ -55,7 +55,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
public function testDefaultContraints() public function testDefaultContraints()
{ {
$table = new Table('sqlsrv_df_constraints'); $table = new Table('sqlsrv_default_constraints');
$table->addColumn('no_default', 'string'); $table->addColumn('no_default', 'string');
$table->addColumn('df_integer', 'integer', array('default' => 666)); $table->addColumn('df_integer', 'integer', array('default' => 666));
$table->addColumn('df_string_1', 'string', array('default' => 'foobar')); $table->addColumn('df_string_1', 'string', array('default' => 'foobar'));
...@@ -65,7 +65,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase ...@@ -65,7 +65,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
$table->addColumn('df_boolean', 'boolean', array('default' => true)); $table->addColumn('df_boolean', 'boolean', array('default' => true));
$this->_sm->createTable($table); $this->_sm->createTable($table);
$columns = $this->_sm->listTableColumns('sqlsrv_df_constraints'); $columns = $this->_sm->listTableColumns('sqlsrv_default_constraints');
$this->assertNull($columns['no_default']->getDefault()); $this->assertNull($columns['no_default']->getDefault());
$this->assertEquals(666, $columns['df_integer']->getDefault()); $this->assertEquals(666, $columns['df_integer']->getDefault());
...@@ -75,7 +75,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase ...@@ -75,7 +75,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
$this->assertEquals(1, $columns['df_boolean']->getDefault()); $this->assertEquals(1, $columns['df_boolean']->getDefault());
$diff = new TableDiff( $diff = new TableDiff(
'sqlsrv_df_constraints', 'sqlsrv_default_constraints',
array( array(
new Column('df_current_timestamp', Type::getType('datetime'), array('default' => 'CURRENT_TIMESTAMP')) new Column('df_current_timestamp', Type::getType('datetime'), array('default' => 'CURRENT_TIMESTAMP'))
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment