CI: more flexible assertions

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2021-06-07 23:41:04 +02:00
parent 35d5395089
commit ff2382e5a4
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -592,7 +592,12 @@ class AccountManagerTest extends TestCase {
$this->populateOrUpdate();
$matchedUsers = $this->accountManager->searchUsers($property, $values);
$this->assertSame($expected, $matchedUsers);
foreach ($expected as $expectedEntry) {
$this->assertContains($expectedEntry, $matchedUsers);
}
if (empty($expected)) {
$this->assertEmpty($matchedUsers);
}
}
public function searchDataProvider(): array {