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
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Integration/Framework/ImapTest.php')
-rw-r--r--tests/Integration/Framework/ImapTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Integration/Framework/ImapTest.php b/tests/Integration/Framework/ImapTest.php
index da18d3d1d..dedeba364 100644
--- a/tests/Integration/Framework/ImapTest.php
+++ b/tests/Integration/Framework/ImapTest.php
@@ -94,8 +94,10 @@ trait ImapTest {
/**
* @return array<string>
*/
- public function getMailboxes() {
- $client = $this->getTestClient();
+ public function getMailboxes(Horde_Imap_Client_Socket $client = null) {
+ if ($client === null) {
+ $client = $this->getTestClient();
+ }
return $this->listMailboxes($client);
}
@@ -150,9 +152,7 @@ trait ImapTest {
$body->setContents($message->getBody());
$mail->setBasePart($body);
- $raw = $mail->getRaw();
- $data = stream_get_contents($raw);
-
+ $data = $mail->getRaw(false);
$client = $this->getClient($account);
try {
return $client->append($mailbox, [