Navigation Menu

Skip to content

Commit

Permalink
Revise test case based on feedback in #10418
Browse files Browse the repository at this point in the history
Try and change the test around to trigger the issue. I'm still not able
to reproduce the issue.
  • Loading branch information
markstory committed Mar 16, 2017
1 parent 9dbeeaa commit c5e31e5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/Cake/Test/Case/Model/ModelReadTest.php
Expand Up @@ -6965,7 +6965,7 @@ public function testFindList() {
*
* @return void
*/
public function testFindListZeroId() {
public function testFindListZeroValue() {
$this->loadFixtures('Article');

$model = new Article();
Expand All @@ -6977,12 +6977,13 @@ public function testFindListZeroId() {
));

$result = $model->find('list', array(
'fields' => array('user_id', 'title')
'fields' => array('title', 'user_id')
));
$expected = array(
0 => 'Zeroth Article',
1 => 'Third Article',
3 => 'Second Article'
'Zeroth Article' => 0,
'First Article' => 1,
'Second Article' => 3,
'Third Article' => 1,
);
$this->assertEquals($expected, $result);
}
Expand Down

0 comments on commit c5e31e5

Please sign in to comment.