Skip to content
Permalink
Browse files

Adding test case for find(list) with recursive.

  • Loading branch information...
markstory committed Jul 11, 2010
1 parent 6d87240 commit e382a1c63cd54277d2eee0d44a48f9dcd6ecf545
Showing with 12 additions and 0 deletions.
  1. +12 −0 cake/tests/cases/libs/model/model_read.test.php
@@ -6408,6 +6408,18 @@ function testGenerateFindList() {
4 => 'garrett (CakePHP)'
);
$this->assertEqual($result, $expected);
$TestModel =& new Article();
$TestModel->displayField = 'title';
$result = $TestModel->find('list', array(
'conditions' => array('User.user' => 'mariano'),
'recursive' => 0
));
$expected = array(
1 => 'First Article',
3 => 'Third Article'
);
$this->assertEqual($result, $expected);
}
/**

0 comments on commit e382a1c

Please sign in to comment.
You can’t perform that action at this time.