diff options
author | Anna Larch <anna@nextcloud.com> | 2022-04-04 15:51:36 +0300 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2022-04-04 15:51:36 +0300 |
commit | 9b0f9f91021192e8939be3dd5431d16e325ff80b (patch) | |
tree | ef9c6c2ff65049a8bbf5100b0f28141b3d1fef35 | |
parent | 27a4485ecd28618b93cafcebfd7859a51f476f04 (diff) |
fix tests
Signed-off-by: Anna Larch <anna@nextcloud.com>
3 files changed, 4 insertions, 1 deletions
diff --git a/tests/Integration/IMAP/MessageMapperTest.php b/tests/Integration/IMAP/MessageMapperTest.php index d537bcaa1..a4a01bcc2 100644 --- a/tests/Integration/IMAP/MessageMapperTest.php +++ b/tests/Integration/IMAP/MessageMapperTest.php @@ -45,12 +45,12 @@ class MessageMapperTest extends TestCase { public function tearDown(): void { $this->resetImapAccount(); + $this->disconnectImapAccount(); } public function testTagging(): void { // First, set up account and retrieve sync token $this->resetImapAccount(); - $account = $this->createTestAccount(); /** @var SyncService $syncService */ $syncService = OC::$server->get(SyncService::class); diff --git a/tests/Integration/Service/AntiSpamServiceIntegrationTest.php b/tests/Integration/Service/AntiSpamServiceIntegrationTest.php index 0f5d14a93..8750cd7f3 100644 --- a/tests/Integration/Service/AntiSpamServiceIntegrationTest.php +++ b/tests/Integration/Service/AntiSpamServiceIntegrationTest.php @@ -52,12 +52,14 @@ class AntiSpamServiceIntegrationTest extends TestCase { public function tearDown(): void { $this->resetImapAccount(); + $this->disconnectImapAccount(); $this->service->deleteConfig(); } public function testFlagJunkWithSpamReportActive(): void { // First, set up account and retrieve sync token $this->resetImapAccount(); + $this->disconnectImapAccount(); $account = $this->createTestAccount(); /** @var SyncService $syncService */ diff --git a/tests/Integration/Service/MailTransmissionIntegrationTest.php b/tests/Integration/Service/MailTransmissionIntegrationTest.php index 8bf24820b..82ef71744 100644 --- a/tests/Integration/Service/MailTransmissionIntegrationTest.php +++ b/tests/Integration/Service/MailTransmissionIntegrationTest.php @@ -71,6 +71,7 @@ class MailTransmissionIntegrationTest extends TestCase { parent::setUp(); $this->resetImapAccount(); + $this->disconnectImapAccount(); $this->user = $this->createTestUser(); /** @var ICrypto $crypo */ |