Skip to content

Commit 42601c0

Browse files
committed
add test for isMail
1 parent 9f94745 commit 42601c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/specs/test-mailer.http.class.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,12 @@ function test_get_attachments() {
176176
$this->assertTrue($attachments[0]['name'] === basename($temp));
177177
$this->assertTrue($attachments[0]['data'] === base64_encode('TEST'));
178178
}
179+
180+
function test_isMail() {
181+
// test if isMail sets correct mailer
182+
$this->mailer->Mailer = 'abc';
183+
$this->assertTrue($this->mailer->Mailer === 'abc');
184+
$this->mailer->isMail();
185+
$this->assertTrue($this->mailer->Mailer === 'sparkpost');
186+
}
179187
}

0 commit comments

Comments
 (0)