Skip to content

Commit

Permalink
Fix SqlServerSchema tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HavokInspiration committed Oct 15, 2015
1 parent 8fc6323 commit a9f0bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Database/Schema/SqlserverSchemaTest.php
Expand Up @@ -704,7 +704,7 @@ public function testAddConstraintSql()
]);

$expected = <<<SQL
ALTER TABLE [posts] ADD CONSTRAINT [category_fk] FOREIGN KEY (]category_id], [category_name]) REFERENCES [categories] ([id], [name]) ON UPDATE CASCADE ON DELETE CASCADE;
ALTER TABLE [posts] ADD CONSTRAINT [category_fk] FOREIGN KEY ([category_id], [category_name]) REFERENCES [categories] ([id], [name]) ON UPDATE CASCADE ON DELETE CASCADE;
SQL;
$result = $table->addConstraintSql($connection);
$this->assertCount(2, $result);
Expand Down Expand Up @@ -745,7 +745,7 @@ public function testDropConstraintSql()
]);

$expected = <<<SQL
ALTER TABLE [posts] DROP FOREIGN KEY [author_fk];
ALTER TABLE [posts] DROP CONSTRAINT [author_fk];
SQL;
$result = $table->dropConstraintSql($connection);
$this->assertCount(1, $result);
Expand Down

0 comments on commit a9f0bd7

Please sign in to comment.