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 402fd94892
commit a5847f5416

View File

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