Use set order for test that failed on travis.

This commit is contained in:
mark_story 2012-11-02 18:06:59 -04:00
parent 9ce70044b0
commit ce3aa692b5

View file

@ -4203,7 +4203,8 @@ class ModelReadTest extends BaseModelTest {
$this->assertTrue($result);
$result = $TestModel->find('all', array(
'fields' => 'User.id, User.user'
'fields' => 'User.id, User.user',
'order' => array('User.id' => 'ASC'),
));
$expected = array(
array(
@ -4296,7 +4297,8 @@ class ModelReadTest extends BaseModelTest {
$this->assertTrue($result);
$result = $TestModel->find('all', array(
'fields' => 'User.id, User.user'
'fields' => 'User.id, User.user',
'order' => array('User.id' => 'ASC'),
));
$expected = array(
@ -4407,7 +4409,8 @@ class ModelReadTest extends BaseModelTest {
$this->assertEquals($expected, $result);
$result = $TestModel->find('all', array(
'fields' => 'User.id, User.user'
'fields' => 'User.id, User.user',
'order' => array('User.id' => 'ASC'),
));
$expected = array(
array('User' => array('id' => '1', 'user' => 'mariano')),
@ -4417,7 +4420,8 @@ class ModelReadTest extends BaseModelTest {
$this->assertEquals($expected, $result);
$result = $TestModel->find('all', array(
'fields' => 'User.id, User.user'
'fields' => 'User.id, User.user',
'order' => array('User.id' => 'ASC'),
));
$expected = array(
array(
@ -4505,7 +4509,10 @@ class ModelReadTest extends BaseModelTest {
$result = $TestModel->unbindModel(array('hasMany' => array('Comment')), false);
$this->assertTrue($result);
$result = $TestModel->find('all', array('fields' => 'User.id, User.user'));
$result = $TestModel->find('all', array(
'fields' => 'User.id, User.user',
'order' => array('User.id' => 'ASC'),
));
$expected = array(
array('User' => array('id' => '1', 'user' => 'mariano')),
array('User' => array('id' => '2', 'user' => 'nate')),
@ -4522,7 +4529,10 @@ class ModelReadTest extends BaseModelTest {
)));
$this->assertTrue($result);
$result = $TestModel->find('all', array('fields' => 'User.id, User.user'));
$result = $TestModel->find('all', array(
'fields' => 'User.id, User.user',
'order' => array('User.id' => 'ASC'),
));
$expected = array(
array(
'User' => array(