fix tests

This commit is contained in:
qfrery
2018-07-16 11:36:54 +01:00
parent 78e5c1866e
commit 43a0d92d2f
2 changed files with 10 additions and 10 deletions

View File

@ -6,7 +6,6 @@ use Codeception\Stub\Expected;
use MailPoet\API\JSON\v1\Services;
use MailPoet\API\JSON\Response as APIResponse;
use MailPoet\Config\Installer;
use MailPoet\Models\Setting;
use MailPoet\Services\Bridge;
class ServicesTest extends \MailPoetTest {
@ -275,8 +274,8 @@ class ServicesTest extends \MailPoetTest {
$this
);
$response = $this->services_endpoint->checkMSSKey($this->data);
expect(isset($response->data['public_id']))->true();
expect($response->data['public_id'])->notEmpty();
expect($response->data['public_id'])->equals(Setting::getValue('public_id'));
}
function testItRespondsContainsPublicIdForPremium() {
@ -288,8 +287,8 @@ class ServicesTest extends \MailPoetTest {
),
$this
);
$response = $this->services_endpoint->checkMSSKey($this->data);
$response = $this->services_endpoint->checkPremiumKey($this->data);
expect(isset($response->data['public_id']))->true();
expect($response->data['public_id'])->notEmpty();
expect($response->data['public_id'])->equals(Setting::getValue('public_id'));
}
}