Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2021-03-23 19:22:02 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-03-25 11:45:09 +0300
commit00ea4273322ca18746d9a21714869c47ca2a1ea0 (patch)
tree0dc1cc28c693ee0149afd8d778cfd838744b0719 /tests
parent7bc1cb1f64294236dcab0f24d4757399539c7524 (diff)
Add time check to hasLocks
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Service/Search/MailSearchTest.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Unit/Service/Search/MailSearchTest.php b/tests/Unit/Service/Search/MailSearchTest.php
index 534bc076f..d08b581a7 100644
--- a/tests/Unit/Service/Search/MailSearchTest.php
+++ b/tests/Unit/Service/Search/MailSearchTest.php
@@ -39,6 +39,7 @@ use OCA\Mail\Service\Search\FilterStringParser;
use OCA\Mail\Service\Search\Flag;
use OCA\Mail\Service\Search\MailSearch;
use OCA\Mail\Service\Search\SearchQuery;
+use OCP\AppFramework\Utility\ITimeFactory;
use PHPUnit\Framework\MockObject\MockObject;
class MailSearchTest extends TestCase {
@@ -61,6 +62,9 @@ class MailSearchTest extends TestCase {
/** @var MessageMapper|MockObject */
private $messageMapper;
+ /** @var ITimeFactory|MockObject */
+ private $timeFactory;
+
protected function setUp(): void {
parent::setUp();
@@ -69,13 +73,15 @@ class MailSearchTest extends TestCase {
$this->imapSearchProvider = $this->createMock(Provider::class);
$this->messageMapper = $this->createMock(MessageMapper::class);
$this->previewEnhancer = $this->createMock(PreviewEnhancer::class);
+ $this->timeFactory = $this->createMock(ITimeFactory::class);
$this->search = new MailSearch(
$this->filterStringParser,
$this->mailboxMapper,
$this->imapSearchProvider,
$this->messageMapper,
- $this->previewEnhancer
+ $this->previewEnhancer,
+ $this->timeFactory
);
}