mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix another test that sometimes fails on travis.
This commit is contained in:
parent
ba8f278075
commit
9007406b9d
1 changed files with 5 additions and 1 deletions
|
@ -5123,7 +5123,10 @@ class ModelReadTest extends BaseModelTest {
|
|||
public function testAssociationAfterFindCalbacksDisabled() {
|
||||
$this->loadFixtures('Post', 'Author', 'Comment');
|
||||
$TestModel = new Post();
|
||||
$result = $TestModel->find('all', array('callbacks' => false));
|
||||
$result = $TestModel->find('all', array(
|
||||
'callbacks' => false,
|
||||
'order' => array('Post.id' => 'ASC'),
|
||||
));
|
||||
$expected = array(
|
||||
array(
|
||||
'Post' => array(
|
||||
|
@ -5190,6 +5193,7 @@ class ModelReadTest extends BaseModelTest {
|
|||
$result = $Author->find('all', array(
|
||||
'conditions' => array('Author.id' => 1),
|
||||
'recursive' => 2,
|
||||
'order' => array('Post.id' => 'ASC'),
|
||||
'callbacks' => false
|
||||
));
|
||||
$expected = array(
|
||||
|
|
Loading…
Reference in a new issue