Add unit tests [PREMIUM-4]

This commit is contained in:
Alexey Stoletniy
2017-05-04 09:25:34 +03:00
parent 8d15ef6d06
commit 0474985866
9 changed files with 460 additions and 22 deletions

View File

@@ -11,12 +11,6 @@ use MailPoet\Services\Bridge;
class SendingServiceKeyCheckTest extends MailPoetTest {
function _before() {
$this->emails = array(
'soft_bounce@example.com',
'hard_bounce@example.com',
'good_address@example.com'
);
$this->sskeycheck = new SendingServiceKeyCheck(microtime(true));
}
@@ -99,6 +93,11 @@ class SendingServiceKeyCheckTest extends MailPoetTest {
}
function testItProcesses() {
$this->sskeycheck->bridge = Stub::make(
new Bridge,
array('checkKey' => array('code' => Bridge::MAILPOET_KEY_VALID)),
$this
);
$this->setMailPoetSendingMethod();
$this->createScheduledQueue();
$this->createRunningQueue();