Browse Source

Flush the registry before generating fixtures.

On travis, there was a ParentCategoryThread instance in the registry
which was causing the test to fail. At least that's what I hope it was.
mark_story 11 years ago
parent
commit
5e6925bfdf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/Shell/Task/TestTaskTest.php

+ 1 - 0
tests/TestCase/Shell/Task/TestTaskTest.php

@@ -233,6 +233,7 @@ class TestTaskTest extends TestCase {
  * @return void
  */
 	public function testFixtureArrayGenerationIgnoreSelfAssociation() {
+		TableRegistry::clear();
 		$subject = new CategoryThreadsTable();
 		$result = $this->Task->generateFixtureList($subject);
 		$expected = [