Fixed broken test.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7375 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mark_story 2008-07-30 01:12:03 +00:00
parent 4267a4f631
commit bd298f0ff3

View file

@ -3161,8 +3161,8 @@ class ModelTest extends CakeTestCase {
$Category =& new CategoryThread(); $Category =& new CategoryThread();
$Category->belongsTo['ParentCategory']['counterCache'] = 'child_count'; $Category->belongsTo['ParentCategory']['counterCache'] = 'child_count';
$Category->updateCounterCache(array('parent_id' => 5)); $Category->updateCounterCache(array('parent_id' => 5));
$result = Set::extract($Category->find('all', array('conditions' => array('CategoryThread.parent_id' => 5))), '{n}.CategoryThread.child_count'); $result = Set::extract($Category->find('all', array('conditions' => array('CategoryThread.id' => 5))), '{n}.CategoryThread.child_count');
$expected = array_fill(0, 2, 1); $expected = array_fill(0, 1, 1);
$this->assertEqual($result, $expected); $this->assertEqual($result, $expected);
} }