Skip to content

Commit 2c841b2

Browse files
committed
test: Rename data providers to match the name of their tests
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
1 parent 74fd144 commit 2c841b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/lib/Collaboration/Collaborators/MailPluginTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function instantiatePlugin() {
9494
* @param bool $expectedMoreResults
9595
* @param bool $validEmail
9696
*/
97-
#[\PHPUnit\Framework\Attributes\DataProvider('dataGetEmail')]
97+
#[\PHPUnit\Framework\Attributes\DataProvider('dataSearch')]
9898
public function testSearch($searchTerm, $contacts, $shareeEnumeration, $expectedResult, $expectedExactIdMatch, $expectedMoreResults, $validEmail): void {
9999
$this->config->expects($this->any())
100100
->method('getAppValue')
@@ -132,7 +132,7 @@ function ($appName, $key, $default) use ($shareeEnumeration) {
132132
$this->assertSame($expectedMoreResults, $moreResults);
133133
}
134134

135-
public static function dataGetEmail(): array {
135+
public static function dataSearch(): array {
136136
return [
137137
// data set 0
138138
['test', [], true, ['emails' => [], 'exact' => ['emails' => []]], false, false, false],
@@ -575,7 +575,7 @@ public static function dataGetEmail(): array {
575575
* @param array $userToGroupMapping
576576
* @param bool $validEmail
577577
*/
578-
#[\PHPUnit\Framework\Attributes\DataProvider('dataGetEmailGroupsOnly')]
578+
#[\PHPUnit\Framework\Attributes\DataProvider('dataSearchGroupsOnly')]
579579
public function testSearchGroupsOnly($searchTerm, $contacts, $expectedResult, $expectedExactIdMatch, $expectedMoreResults, $userToGroupMapping, $validEmail): void {
580580
$this->config->expects($this->any())
581581
->method('getAppValue')
@@ -632,7 +632,7 @@ function ($appName, $key, $default) {
632632
$this->assertSame($expectedMoreResults, $moreResults);
633633
}
634634

635-
public static function dataGetEmailGroupsOnly(): array {
635+
public static function dataSearchGroupsOnly(): array {
636636
return [
637637
// The user `User` can share with the current user
638638
[

0 commit comments

Comments
 (0)