Skip to content

Commit

Permalink
Use set order for test that failed on travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 2, 2012
1 parent 9ce7004 commit ce3aa69
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions lib/Cake/Test/Case/Model/ModelReadTest.php
Expand Up @@ -4203,7 +4203,8 @@ public function testBindUnbind() {
$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(
Expand Down Expand Up @@ -4296,7 +4297,8 @@ public function testBindUnbind() {
$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(
Expand Down Expand Up @@ -4407,7 +4409,8 @@ public function testBindUnbind() {
$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')),
Expand All @@ -4417,7 +4420,8 @@ public function testBindUnbind() {
$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(
Expand Down Expand Up @@ -4505,7 +4509,10 @@ public function testBindUnbind() {
$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')),
Expand All @@ -4522,7 +4529,10 @@ public function testBindUnbind() {
)));
$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(
Expand Down

0 comments on commit ce3aa69

Please sign in to comment.