Skip to content

Commit

Permalink
#41 Refonte de la méthode lists().
Browse files Browse the repository at this point in the history
  • Loading branch information
noelma committed Mar 2, 2021
1 parent 6a21cfb commit 70686b3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,16 @@ public function testLists()

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

self::assertArraySubset($data, [
'NOEL' => 'Mathieu',
'DUPOND' => 'Jean',
'MARTIN' => 'Manon',
null => 'Marie',
'DUPOND' => 'Pierre',
'MEYER' => 'Eva',
'ROBERT' => null
0 => 'Mathieu',
1 => 'Jean',
2 => 'Manon',
3 => 'Marie',
4 => 'Pierre',
5 => 'Eva',
6 => null
]);
}

Expand Down

0 comments on commit 70686b3

Please sign in to comment.