diff --git a/tests/lib/Collaboration/Collaborators/MailPluginTest.php b/tests/lib/Collaboration/Collaborators/MailPluginTest.php index e004db9409c..6562e32880e 100644 --- a/tests/lib/Collaboration/Collaborators/MailPluginTest.php +++ b/tests/lib/Collaboration/Collaborators/MailPluginTest.php @@ -96,7 +96,7 @@ class MailPluginTest extends TestCase { * @param bool $expectedMoreResults * @param bool $validEmail */ - #[\PHPUnit\Framework\Attributes\DataProvider('dataGetEmail')] + #[\PHPUnit\Framework\Attributes\DataProvider('dataSearch')] public function testSearch($searchTerm, $contacts, $shareeEnumeration, $expectedResult, $expectedExactIdMatch, $expectedMoreResults, $validEmail): void { $this->config->expects($this->any()) ->method('getAppValue') @@ -137,7 +137,7 @@ class MailPluginTest extends TestCase { $this->assertSame($expectedMoreResults, $moreResults); } - public static function dataGetEmail(): array { + public static function dataSearch(): array { return [ // data set 0 ['test', [], true, ['emails' => [], 'exact' => ['emails' => []]], false, false, false], @@ -580,7 +580,7 @@ class MailPluginTest extends TestCase { * @param array $userToGroupMapping * @param bool $validEmail */ - #[\PHPUnit\Framework\Attributes\DataProvider('dataGetEmailGroupsOnly')] + #[\PHPUnit\Framework\Attributes\DataProvider('dataSearchGroupsOnly')] public function testSearchGroupsOnly($searchTerm, $contacts, $expectedResult, $expectedExactIdMatch, $expectedMoreResults, $userToGroupMapping, $validEmail): void { $this->config->expects($this->any()) ->method('getAppValue') @@ -640,7 +640,7 @@ class MailPluginTest extends TestCase { $this->assertSame($expectedMoreResults, $moreResults); } - public static function dataGetEmailGroupsOnly(): array { + public static function dataSearchGroupsOnly(): array { return [ // The user `User` can share with the current user [