mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
8d8fb99e37
commit
689c0d9762
1 changed files with 6 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue