Permalink
Browse files

Use set order for test that failed on travis.

  • Loading branch information...
1 parent 9ce7004 commit ce3aa692b50b4239e32a58a250d4a7c8f0afca21 @markstory markstory committed Nov 2, 2012
Showing with 16 additions and 6 deletions.
  1. +16 −6 lib/Cake/Test/Case/Model/ModelReadTest.php
@@ -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(
@@ -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(
@@ -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')),
@@ -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(
@@ -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')),
@@ -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(

0 comments on commit ce3aa69

Please sign in to comment.