Browse Source

The TableRegistry should be cleared to prevent conflicts with
the rest of the tests suite

Yves P 10 years ago
parent
commit
afccef8dee
1 changed files with 7 additions and 1 deletions
  1. 7 1
      tests/TestCase/Database/Schema/TableTest.php

+ 7 - 1
tests/TestCase/Database/Schema/TableTest.php

@@ -25,7 +25,13 @@ use Cake\TestSuite\TestCase;
 class TableTest extends TestCase
 {
 
-    public $fixtures = ['core.articles_tags', 'core.products', 'core.orders'];
+    public $fixtures = ['core.articles_tags', 'core.products', 'core.orders', 'core.tags'];
+
+    public function tearDown()
+    {
+        TableRegistry::clear();
+        parent::tearDown();
+    }
 
     /**
      * Test construction with columns