/**
* testFindAllWithConditionInChildQuery
*
* @return void
*/
public function testFindAllWithConditionInChildQuery()
{
$this->loadFixtures('Basket', 'FilmFile');
$TestModel = new Basket();
$recursive = 3;
$result = $TestModel->find('all', compact('recursive'));
$expected = array(array('Basket' => array('id' => 1, 'type' => 'nonfile', 'name' => 'basket1', 'object_id' => 1, 'user_id' => 1), 'FilmFile' => array('id' => '', 'name' => '')), array('Basket' => array('id' => 2, 'type' => 'file', 'name' => 'basket2', 'object_id' => 2, 'user_id' => 1), 'FilmFile' => array('id' => 2, 'name' => 'two')));
$this->assertEquals($expected, $result);
}