Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 7, 2016
1 parent 9b57973 commit afd03b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Database/Schema/TableTest.php
Expand Up @@ -308,7 +308,7 @@ public function testAddConstraint()
* >
* @return void
*/
public function testAddConstraintWithOverlappingUniqueIndex()
public function testAddConstraintOverwriteUniqueIndex()
{
$table = new Table('articles');
$table->addColumn('project_id', [
Expand All @@ -333,7 +333,7 @@ public function testAddConstraintWithOverlappingUniqueIndex()
'references' => ['users', 'project_id', 'id'],
'columns' => ['project_id', 'user_id']
]);
$this->assertEquals(['unique_project', 'users_idx'], $table->constraints());
$this->assertEquals(['users_idx'], $table->constraints());
}

/**
Expand Down

0 comments on commit afd03b6

Please sign in to comment.