Merge pull request #50322 from nextcloud/backport/50319/stable30

[stable30] test(group): fix frequent `testSearchGroups` failure
This commit is contained in:
Josh 2025-01-22 13:56:29 -05:00 committed by GitHub
commit 5bcce6b01f
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() {
$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));
}