Unify API response constants

[MAILPOET-1035]
This commit is contained in:
Pavel Dohnal
2017-07-31 13:51:23 +02:00
parent 6e45856622
commit 7cf3d0960d
7 changed files with 34 additions and 40 deletions

View File

@ -23,7 +23,7 @@ class ServicesTest extends \MailPoetTest {
$this->services_endpoint->bridge = Stub::make(
new Bridge(),
array(
'checkMSSKey' => array('state' => Bridge::MAILPOET_KEY_VALID),
'checkMSSKey' => array('state' => Bridge::PREMIUM_KEY_VALID),
'storeMSSKeyAndState' => Stub::once()
),
$this
@ -36,7 +36,7 @@ class ServicesTest extends \MailPoetTest {
$this->services_endpoint->bridge = Stub::make(
new Bridge(),
array(
'checkMSSKey' => array('state' => Bridge::MAILPOET_KEY_INVALID),
'checkMSSKey' => array('state' => Bridge::PREMIUM_KEY_INVALID),
'storeMSSKeyAndState' => Stub::once()
),
$this
@ -51,7 +51,7 @@ class ServicesTest extends \MailPoetTest {
new Bridge(),
array(
'checkMSSKey' => array(
'state' => Bridge::MAILPOET_KEY_EXPIRING,
'state' => Bridge::PREMIUM_KEY_EXPIRING,
'data' => array('expire_at' => $date->format('c'))
),
'storeMSSKeyAndState' => Stub::once()