Fixing matches from previous tests added to Containable

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7232 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2008-06-21 23:55:03 +00:00
parent 8d8fb99e37
commit 689c0d9762

View file

@ -3275,16 +3275,16 @@ class ContainableTest extends CakeTestCase {
$this->Article->contain(false, array('User' => array('fields' => 'user'), 'Comment'));
$result = $this->Article->find('all');
$this->assertTrue(Set::matches('/Article[id=1]', $r));
$this->assertTrue(Set::matches('/User[user=mariano]', $r));
$this->assertTrue(Set::matches('/Comment[article_id=1]', $r));
$this->assertTrue(Set::matches('/Article[id=1]', $result));
$this->assertTrue(Set::matches('/User[user=mariano]', $result));
$this->assertTrue(Set::matches('/Comment[article_id=1]', $result));
$this->Article->resetBindings();
$this->Article->contain(false, array('User' => array('fields' => array('user')), 'Comment'));
$result = $this->Article->find('all');
$this->assertTrue(Set::matches('/Article[id=1]', $r));
$this->assertTrue(Set::matches('/User[user=mariano]', $r));
$this->assertTrue(Set::matches('/Comment[article_id=1]', $r));
$this->assertTrue(Set::matches('/Article[id=1]', $result));
$this->assertTrue(Set::matches('/User[user=mariano]', $result));
$this->assertTrue(Set::matches('/Comment[article_id=1]', $result));
$this->Article->resetBindings();
}
/**