diff --git a/tests/lib/Collaboration/Collaborators/MailPluginTest.php b/tests/lib/Collaboration/Collaborators/MailPluginTest.php index e74c901a716..48167301790 100644 --- a/tests/lib/Collaboration/Collaborators/MailPluginTest.php +++ b/tests/lib/Collaboration/Collaborators/MailPluginTest.php @@ -89,13 +89,13 @@ class MailPluginTest extends TestCase { * @param string $searchTerm * @param array $contacts * @param bool $shareeEnumeration - * @param array $expected - * @param bool $exactIdMatch - * @param bool $reachedEnd + * @param array $expectedResult + * @param bool $expectedExactIdMatch + * @param bool $expectedMoreResults * @param bool $validEmail */ #[\PHPUnit\Framework\Attributes\DataProvider('dataGetEmail')] - public function testSearch($searchTerm, $contacts, $shareeEnumeration, $expected, $exactIdMatch, $reachedEnd, $validEmail): void { + public function testSearch($searchTerm, $contacts, $shareeEnumeration, $expectedResult, $expectedExactIdMatch, $expectedMoreResults, $validEmail): void { $this->config->expects($this->any()) ->method('getAppValue') ->willReturnCallback( @@ -127,9 +127,9 @@ class MailPluginTest extends TestCase { $moreResults = $this->plugin->search($searchTerm, 2, 0, $this->searchResult); $result = $this->searchResult->asArray(); - $this->assertSame($exactIdMatch, $this->searchResult->hasExactIdMatch(new SearchResultType('emails'))); - $this->assertEquals($expected, $result); - $this->assertSame($reachedEnd, $moreResults); + $this->assertSame($expectedExactIdMatch, $this->searchResult->hasExactIdMatch(new SearchResultType('emails'))); + $this->assertEquals($expectedResult, $result); + $this->assertSame($expectedMoreResults, $moreResults); } public static function dataGetEmail(): array { @@ -569,14 +569,14 @@ class MailPluginTest extends TestCase { * * @param string $searchTerm * @param array $contacts - * @param array $expected - * @param bool $exactIdMatch - * @param bool $reachedEnd + * @param array $expectedResult + * @param bool $expectedExactIdMatch + * @param bool $expectedMoreResults * @param array $userToGroupMapping * @param bool $validEmail */ #[\PHPUnit\Framework\Attributes\DataProvider('dataGetEmailGroupsOnly')] - public function testSearchGroupsOnly($searchTerm, $contacts, $expected, $exactIdMatch, $reachedEnd, $userToGroupMapping, $validEmail): void { + public function testSearchGroupsOnly($searchTerm, $contacts, $expectedResult, $expectedExactIdMatch, $expectedMoreResults, $userToGroupMapping, $validEmail): void { $this->config->expects($this->any()) ->method('getAppValue') ->willReturnCallback( @@ -627,9 +627,9 @@ class MailPluginTest extends TestCase { $moreResults = $this->plugin->search($searchTerm, 2, 0, $this->searchResult); $result = $this->searchResult->asArray(); - $this->assertSame($exactIdMatch, $this->searchResult->hasExactIdMatch(new SearchResultType('emails'))); - $this->assertEquals($expected, $result); - $this->assertSame($reachedEnd, $moreResults); + $this->assertSame($expectedExactIdMatch, $this->searchResult->hasExactIdMatch(new SearchResultType('emails'))); + $this->assertEquals($expectedResult, $result); + $this->assertSame($expectedMoreResults, $moreResults); } public static function dataGetEmailGroupsOnly(): array {