Test to prove ticket #253

This commit is contained in:
ceeram 2009-11-04 12:31:39 +01:00 committed by mark_story
parent 30dc0cfe56
commit dd0c4a64c5

View file

@ -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(