From c5e31e590df0673d60e931932abd4fcf28f8134a Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 15 Mar 2017 21:33:19 -0400 Subject: [PATCH] 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. --- lib/Cake/Test/Case/Model/ModelReadTest.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/Cake/Test/Case/Model/ModelReadTest.php b/lib/Cake/Test/Case/Model/ModelReadTest.php index e08acb1733c..48ca338a562 100644 --- a/lib/Cake/Test/Case/Model/ModelReadTest.php +++ b/lib/Cake/Test/Case/Model/ModelReadTest.php @@ -6965,7 +6965,7 @@ public function testFindList() { * * @return void */ - public function testFindListZeroId() { + public function testFindListZeroValue() { $this->loadFixtures('Article'); $model = new Article(); @@ -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); }