euromark 11 years ago
parent
commit
a921cb4e25
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Test/Case/Model/Behavior/MultipleDisplayFieldsBehaviorTest.php

+ 2 - 2
Test/Case/Model/Behavior/MultipleDisplayFieldsBehaviorTest.php

@@ -80,9 +80,9 @@ class MultipleDisplayFieldsBehaviorTest extends MyCakeTestCase {
 			'pattern' => '%s by %s (%s)',
 		);
 		$this->Comment->Behaviors->load('Tools.MultipleDisplayFields', $config);
-		$res = $this->Comment->find('all', array('contain' => array('User')));
+		$res = $this->Comment->find('all', array('order' => array(), 'contain' => array('User')));
 		$this->debug($res);
-		$this->assertEquals('First Comment for First Article by Y (nate)', $res[5]['Comment']['display_field']);
+		$this->assertEquals('First Comment for First Article by Y (nate)', $res[0]['Comment']['display_field']);
 	}
 
 }