mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Use set order for test that failed on travis.
This commit is contained in:
parent
9ce70044b0
commit
ce3aa692b5
1 changed files with 16 additions and 6 deletions
|
@ -4203,7 +4203,8 @@ class ModelReadTest extends BaseModelTest {
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
|
|
||||||
$result = $TestModel->find('all', array(
|
$result = $TestModel->find('all', array(
|
||||||
'fields' => 'User.id, User.user'
|
'fields' => 'User.id, User.user',
|
||||||
|
'order' => array('User.id' => 'ASC'),
|
||||||
));
|
));
|
||||||
$expected = array(
|
$expected = array(
|
||||||
array(
|
array(
|
||||||
|
@ -4296,7 +4297,8 @@ class ModelReadTest extends BaseModelTest {
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
|
|
||||||
$result = $TestModel->find('all', array(
|
$result = $TestModel->find('all', array(
|
||||||
'fields' => 'User.id, User.user'
|
'fields' => 'User.id, User.user',
|
||||||
|
'order' => array('User.id' => 'ASC'),
|
||||||
));
|
));
|
||||||
|
|
||||||
$expected = array(
|
$expected = array(
|
||||||
|
@ -4407,7 +4409,8 @@ class ModelReadTest extends BaseModelTest {
|
||||||
$this->assertEquals($expected, $result);
|
$this->assertEquals($expected, $result);
|
||||||
|
|
||||||
$result = $TestModel->find('all', array(
|
$result = $TestModel->find('all', array(
|
||||||
'fields' => 'User.id, User.user'
|
'fields' => 'User.id, User.user',
|
||||||
|
'order' => array('User.id' => 'ASC'),
|
||||||
));
|
));
|
||||||
$expected = array(
|
$expected = array(
|
||||||
array('User' => array('id' => '1', 'user' => 'mariano')),
|
array('User' => array('id' => '1', 'user' => 'mariano')),
|
||||||
|
@ -4417,7 +4420,8 @@ class ModelReadTest extends BaseModelTest {
|
||||||
$this->assertEquals($expected, $result);
|
$this->assertEquals($expected, $result);
|
||||||
|
|
||||||
$result = $TestModel->find('all', array(
|
$result = $TestModel->find('all', array(
|
||||||
'fields' => 'User.id, User.user'
|
'fields' => 'User.id, User.user',
|
||||||
|
'order' => array('User.id' => 'ASC'),
|
||||||
));
|
));
|
||||||
$expected = array(
|
$expected = array(
|
||||||
array(
|
array(
|
||||||
|
@ -4505,7 +4509,10 @@ class ModelReadTest extends BaseModelTest {
|
||||||
$result = $TestModel->unbindModel(array('hasMany' => array('Comment')), false);
|
$result = $TestModel->unbindModel(array('hasMany' => array('Comment')), false);
|
||||||
$this->assertTrue($result);
|
$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(
|
$expected = array(
|
||||||
array('User' => array('id' => '1', 'user' => 'mariano')),
|
array('User' => array('id' => '1', 'user' => 'mariano')),
|
||||||
array('User' => array('id' => '2', 'user' => 'nate')),
|
array('User' => array('id' => '2', 'user' => 'nate')),
|
||||||
|
@ -4522,7 +4529,10 @@ class ModelReadTest extends BaseModelTest {
|
||||||
)));
|
)));
|
||||||
$this->assertTrue($result);
|
$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(
|
$expected = array(
|
||||||
array(
|
array(
|
||||||
'User' => array(
|
'User' => array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue