Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing faling test case

  • Loading branch information...
commit e7ee5e9edab036ea63be3a0ac5a71b60c3fb2b32 1 parent 7a7d0de
@lorenzo lorenzo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cake/tests/cases/libs/model/model_read.test.php
View
2  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');
Please sign in to comment.
Something went wrong with that request. Please try again.