Skip to content

Commit

Permalink
Flush the registry before generating fixtures.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
markstory committed Sep 2, 2014
1 parent a567437 commit 5e6925b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/TestCase/Shell/Task/TestTaskTest.php
Expand Up @@ -233,6 +233,7 @@ public function testFixtureArrayGenerationFromModel() {
* @return void
*/
public function testFixtureArrayGenerationIgnoreSelfAssociation() {
TableRegistry::clear();
$subject = new CategoryThreadsTable();
$result = $this->Task->generateFixtureList($subject);
$expected = [
Expand Down

0 comments on commit 5e6925b

Please sign in to comment.