From 2c841b233754c324d6fe079148ff52023b3176f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Sat, 5 Apr 2025 12:08:10 +0200 Subject: [PATCH] test: Rename data providers to match the name of their tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Calviño Sánchez --- tests/lib/Collaboration/Collaborators/MailPluginTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/lib/Collaboration/Collaborators/MailPluginTest.php b/tests/lib/Collaboration/Collaborators/MailPluginTest.php index eec8bdbb2b2..6f0d52efca5 100644 --- a/tests/lib/Collaboration/Collaborators/MailPluginTest.php +++ b/tests/lib/Collaboration/Collaborators/MailPluginTest.php @@ -94,7 +94,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') @@ -132,7 +132,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], @@ -575,7 +575,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') @@ -632,7 +632,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 [