mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
fix(MailPlugin): Use correct type for exact id match
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
17fa2c7605
commit
d92aac8f7d
2 changed files with 2 additions and 2 deletions
|
|
@ -154,7 +154,7 @@ class MailPlugin implements ISearchPlugin {
|
|||
'shareWithDisplayNameUnique' => !empty($emailAddress) ? $emailAddress : $cloud->getUser()
|
||||
]];
|
||||
$searchResult->addResultSet($userType, [], $singleResult);
|
||||
$searchResult->markExactIdMatch($emailType);
|
||||
$searchResult->markExactIdMatch($userType);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -575,7 +575,7 @@ class MailPluginTest extends TestCase {
|
|||
$moreResults = $this->plugin->search($searchTerm, 2, 0, $this->searchResult);
|
||||
$result = $this->searchResult->asArray();
|
||||
|
||||
$this->assertSame($expectedExactIdMatch, $this->searchResult->hasExactIdMatch(new SearchResultType('emails')));
|
||||
$this->assertSame($expectedExactIdMatch, $this->searchResult->hasExactIdMatch(new SearchResultType('users')));
|
||||
$this->assertEquals($expectedResult, $result);
|
||||
$this->assertSame($expectedMoreResults, $moreResults);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue