mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
test: prevent false negatives
This commit is contained in:
parent
4d8e6abff6
commit
3b7b4055f1
|
@ -53,7 +53,7 @@ class ListWithFulltextSearchTest extends TestCase
|
||||||
$data = json_decode($contents = $response->getBody()->getContents(), true)['data'] ?? [];
|
$data = json_decode($contents = $response->getBody()->getContents(), true)['data'] ?? [];
|
||||||
|
|
||||||
$this->assertEquals(200, $response->getStatusCode(), $contents);
|
$this->assertEquals(200, $response->getStatusCode(), $contents);
|
||||||
$this->assertEquals($expected, Arr::pluck($data, 'id'));
|
$this->assertEqualsCanonicalizing($expected, Arr::pluck($data, 'id'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function searchDataProvider(): array
|
public static function searchDataProvider(): array
|
||||||
|
|
Loading…
Reference in New Issue
Block a user