mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 19:39:45 +08:00
parent
402fd94892
commit
a5847f5416
|
@ -93,7 +93,9 @@ class ListDiscussionsControllerTest extends ApiControllerTestCase
|
||||||
'include' => 'mostRelevantPost'
|
'include' => 'mostRelevantPost'
|
||||||
]);
|
]);
|
||||||
$data = json_decode($response->getBody()->getContents(), true);
|
$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
|
// Order-independent comparison
|
||||||
$this->assertEquals(['2', '3'], $ids, 'IDs do not match', 0.0, 10, true);
|
$this->assertEquals(['2', '3'], $ids, 'IDs do not match', 0.0, 10, true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user