Skip to content

Commit

Permalink
fixup! test: fix redis not being used properly in imapClientFactoryTest
Browse files Browse the repository at this point in the history
  • Loading branch information
st3iny committed Sep 23, 2024
1 parent df8c55f commit 4117cb5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 57 deletions.
32 changes: 0 additions & 32 deletions lib/Cache/CacheFactory.php

This file was deleted.

25 changes: 0 additions & 25 deletions tests/Integration/Framework/ImapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,31 +211,6 @@ public function deleteMessage($mailbox, $id, ?MailAccount $account = null) {
}
}

/**
* Delete a message without informing Horde or the db cache. This simulates another client
* deleting a message on IMAP.
*
* @param int[] $uids
*/
public function deleteMessagesExternally(string $mailbox, array $uids): void {
$client = new Horde_Imap_Client_Socket([
'username' => '[email protected]',
'password' => 'mypassword',
'hostspec' => '127.0.0.1',
'port' => 993,
'secure' => 'ssl',
]);
$ids = new Horde_Imap_Client_Ids($uids);
try {
$client->expunge($mailbox, [
'ids' => $ids,
'delete' => true,
]);
} finally {
$client->logout();
}
}

/**
* @param Horde_Imap_Client_Socket $client
* @param string $mailbox
Expand Down

0 comments on commit 4117cb5

Please sign in to comment.