diff --git a/cake/tests/cases/libs/model/model_read.test.php b/cake/tests/cases/libs/model/model_read.test.php index e7b013c799b..ddc174e418c 100644 --- a/cake/tests/cases/libs/model/model_read.test.php +++ b/cake/tests/cases/libs/model/model_read.test.php @@ -92,7 +92,7 @@ function testVirtualFields() { $result = $Post->find('all',array( 'fields' => array($dbo->calculate($Post,'max',array('other_field'))) )); - $this->assertEqual($result[0]['other_field'],4); + $this->assertEqual($result[0][0]['other_field'],4); ClassRegistry::flush(); $Writing = ClassRegistry::init(array('class' => 'Post', 'alias' => 'Writing'),'Model');