|
|
@@ -7759,7 +7759,9 @@ class ModelReadTest extends BaseModelTest {
|
|
|
$this->assertEquals($expected, $result);
|
|
|
|
|
|
$Post->Author->virtualFields = array('joined' => 'Post.id * Author.id');
|
|
|
- $result = $Post->find('all');
|
|
|
+ $result = $Post->find('all', array(
|
|
|
+ 'order' => array('Post.id' => 'ASC')
|
|
|
+ ));
|
|
|
$result = Hash::extract($result, '{n}.Author.joined');
|
|
|
$expected = array(1, 6, 3);
|
|
|
$this->assertEquals($expected, $result);
|