Skip to content
This repository
Browse code

Fixing faling test case

  • Loading branch information...
commit e7ee5e9edab036ea63be3a0ac5a71b60c3fb2b32 1 parent 7a7d0de
José Lorenzo Rodríguez authored December 06, 2009
2  cake/tests/cases/libs/model/model_read.test.php
@@ -92,7 +92,7 @@ function testVirtualFields() {
92 92
 		$result = $Post->find('all',array(
93 93
 			'fields' => array($dbo->calculate($Post,'max',array('other_field')))
94 94
 		));
95  
-		$this->assertEqual($result[0]['other_field'],4);
  95
+		$this->assertEqual($result[0][0]['other_field'],4);
96 96
 
97 97
 		ClassRegistry::flush();
98 98
 		$Writing = ClassRegistry::init(array('class' => 'Post', 'alias' => 'Writing'),'Model');

0 notes on commit e7ee5e9

Please sign in to comment.
Something went wrong with that request. Please try again.