Apply fixes from StyleCI (#1756)

[ci skip] [skip ci]
This commit is contained in:
Franz Liedke 2019-03-07 00:22:15 +01:00 committed by GitHub
parent 26c3bcdb74
commit d822a6f84c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);