summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-07 23:41:04 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-07 23:41:04 +0200
commitff2382e5a4a5c29e3e1c948a514c151cae71d402 (patch)
treee36bad5d99841dbfceec2288188006ecaaefa267 /tests
parent35d5395089e17e2402e4786c25f0ba915b924773 (diff)
downloadnextcloud-server-ff2382e5a4a5c29e3e1c948a514c151cae71d402.tar.gz
nextcloud-server-ff2382e5a4a5c29e3e1c948a514c151cae71d402.zip
CI: more flexible assertions
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Accounts/AccountManagerTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib/Accounts/AccountManagerTest.php b/tests/lib/Accounts/AccountManagerTest.php
index 86f38b9f6ca..ea82bd04f3f 100644
--- a/tests/lib/Accounts/AccountManagerTest.php
+++ b/tests/lib/Accounts/AccountManagerTest.php
@@ -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 {