Merge pull request #50319 from nextcloud/jtr/fix-testSearchGroups

test(group): fix frequent `testSearchGroups` failure
This commit is contained in:
Josh 2025-01-22 12:44:06 -05:00 committed by GitHub
commit 451a843db7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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));
}