Browse Source

Fix an error from a previous build.

Robert Pustułka 8 years ago
parent
commit
0a2447ae4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/ORM/TableRegressionTest.php

+ 1 - 1
tests/TestCase/ORM/TableRegressionTest.php

@@ -74,7 +74,7 @@ class TableRegressionTest extends TestCase
     {
         $this->expectException(InvalidArgumentException::class);
         $this->expectExceptionMessage('primary key');
-        $table = TableRegistry::get('Authors');
+        $table = $this->getTableLocator()->get('Authors');
         $table->getSchema()->dropConstraint('primary');
 
         $entity = $table->find()->first();