mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Test to prove ticket #253
This commit is contained in:
parent
30dc0cfe56
commit
dd0c4a64c5
1 changed files with 11 additions and 0 deletions
|
@ -3380,6 +3380,17 @@ class ContainableBehaviorTest extends CakeTestCase {
|
|||
));
|
||||
$this->assertEqual($expected, $this->Article->User->hasOne);
|
||||
|
||||
$this->Article->User->bindModel($userHasOne, false);
|
||||
$expected = $this->Article->User->hasOne;
|
||||
$this->Article->find('all', array(
|
||||
'contain' => array(
|
||||
'User' => array(
|
||||
'Comment' => array('fields' => array('created'))
|
||||
)
|
||||
)
|
||||
));
|
||||
$this->assertEqual($expected, $this->Article->User->hasOne);
|
||||
|
||||
$this->Article->User->bindModel($userHasOne, false);
|
||||
$expected = $this->Article->User->hasOne;
|
||||
$this->Article->find('all', array(
|
||||
|
|
Loading…
Add table
Reference in a new issue