mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Revise test case based on feedback in #10418
Try and change the test around to trigger the issue. I'm still not able to reproduce the issue.
This commit is contained in:
parent
9dbeeaa1fa
commit
c5e31e590d
1 changed files with 6 additions and 5 deletions
|
@ -6965,7 +6965,7 @@ class ModelReadTest extends BaseModelTest {
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testFindListZeroId() {
|
public function testFindListZeroValue() {
|
||||||
$this->loadFixtures('Article');
|
$this->loadFixtures('Article');
|
||||||
|
|
||||||
$model = new Article();
|
$model = new Article();
|
||||||
|
@ -6977,12 +6977,13 @@ class ModelReadTest extends BaseModelTest {
|
||||||
));
|
));
|
||||||
|
|
||||||
$result = $model->find('list', array(
|
$result = $model->find('list', array(
|
||||||
'fields' => array('user_id', 'title')
|
'fields' => array('title', 'user_id')
|
||||||
));
|
));
|
||||||
$expected = array(
|
$expected = array(
|
||||||
0 => 'Zeroth Article',
|
'Zeroth Article' => 0,
|
||||||
1 => 'Third Article',
|
'First Article' => 1,
|
||||||
3 => 'Second Article'
|
'Second Article' => 3,
|
||||||
|
'Third Article' => 1,
|
||||||
);
|
);
|
||||||
$this->assertEquals($expected, $result);
|
$this->assertEquals($expected, $result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue