Skip to content

Commit 035c6f9

Browse files
committed
#41 Refonte de la méthode lists().
1 parent 46a3ef2 commit 035c6f9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/RequestTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,16 @@ public function testLists()
203203

204204
public function testListsKey()
205205
{
206-
$data = $this->request->from('user')->lists('firstname', 'name');
206+
$data = $this->request->from('user')->lists('firstname', 'id');
207207

208208
self::assertArraySubset($data, [
209-
'NOEL' => 'Mathieu',
210-
'DUPOND' => 'Jean',
211-
'MARTIN' => 'Manon',
212-
null => 'Marie',
213-
'DUPOND' => 'Pierre',
214-
'MEYER' => 'Eva',
215-
'ROBERT' => null
209+
0 => 'Mathieu',
210+
1 => 'Jean',
211+
2 => 'Manon',
212+
3 => 'Marie',
213+
4 => 'Pierre',
214+
5 => 'Eva',
215+
6 => null
216216
]);
217217
}
218218

0 commit comments

Comments
 (0)