Skip to content
Permalink
Browse files

Tweak fixtures and expectations to make tests pass.

Now that articles_tags has a FK, it always has to accompany the tags
table, which it wasn't in the OrmCacheShellTest. The ModelTaskTest
expectations also had to change becuase of additional fixtures.
  • Loading branch information...
markstory committed Sep 7, 2014
1 parent c8a2625 commit 4d4391490520991a73b5d70c6f671e408749f857
Showing with 3 additions and 3 deletions.
  1. +1 −1 tests/TestCase/Shell/OrmCacheShellTest.php
  2. +2 −2 tests/TestCase/Shell/Task/ModelTaskTest.php
@@ -29,7 +29,7 @@ class OrmCacheShellTest extends TestCase {
*
* @var array
*/
public $fixtures = ['core.article', 'core.articles_tag', 'core.tag'];
public $fixtures = ['core.article', 'core.tag'];
/**
* setup method
@@ -1109,9 +1109,9 @@ public function testSkipTablesAndAll() {
$this->Task->connection = 'test';
$this->Task->skipTables = ['articles_tags', 'bake_tags', 'counter_cache_posts'];
$this->Task->Fixture->expects($this->exactly(7))
$this->Task->Fixture->expects($this->exactly(8))
->method('bake');
$this->Task->Test->expects($this->exactly(7))
$this->Task->Test->expects($this->exactly(8))
->method('bake');
$filename = $this->_normalizePath(APP . 'Model/Entity/BakeArticle.php');

0 comments on commit 4d43914

Please sign in to comment.
You can’t perform that action at this time.