mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 22:44:54 +08:00
parent
26c3bcdb74
commit
d822a6f84c
|
@ -93,7 +93,9 @@ class ListDiscussionsControllerTest extends ApiControllerTestCase
|
|||
'include' => 'mostRelevantPost'
|
||||
]);
|
||||
$data = json_decode($response->getBody()->getContents(), true);
|
||||
$ids = array_map(function ($row) { return $row['id']; }, $data['data']);
|
||||
$ids = array_map(function ($row) {
|
||||
return $row['id'];
|
||||
}, $data['data']);
|
||||
|
||||
// Order-independent comparison
|
||||
$this->assertEquals(['2', '3'], $ids, 'IDs do not match', 0.0, 10, true);
|
||||
|
|
Loading…
Reference in New Issue
Block a user