mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
CI: more flexible assertions
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
35d5395089
commit
ff2382e5a4
1 changed files with 6 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue