Browse Source
test: fix periodic `Test\Group\DatabaseTest::testSearchGroups` failure
Signed-off-by: Josh <josh.t.richards@gmail.com>
pull/50319/head
Josh
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
tests/lib/Group/Backend.php
|
|
|
@ -103,14 +103,14 @@ abstract class Backend extends \Test\TestCase { |
|
|
|
|
|
|
|
public function testSearchGroups(): void { |
|
|
|
$name1 = $this->getGroupName('foobarbaz'); |
|
|
|
$name2 = $this->getGroupName('bazbarfoo'); |
|
|
|
$name2 = $this->getGroupName('bazfoobarfoo'); |
|
|
|
$name3 = $this->getGroupName('notme'); |
|
|
|
|
|
|
|
$this->backend->createGroup($name1); |
|
|
|
$this->backend->createGroup($name2); |
|
|
|
$this->backend->createGroup($name3); |
|
|
|
|
|
|
|
$result = $this->backend->getGroups('bar'); |
|
|
|
$result = $this->backend->getGroups('foobar'); |
|
|
|
$this->assertSame(2, count($result)); |
|
|
|
} |
|
|
|
|
|
|
|
|