summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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 {