Rename license key constants and vars, optimize error generation [PREMIUM-4]

This commit is contained in:
Alexey Stoletniy
2017-05-05 18:04:52 +03:00
parent d8e1c76155
commit 787e022382
6 changed files with 38 additions and 38 deletions

View File

@@ -103,7 +103,7 @@ class ServicesTest extends MailPoetTest {
function testItRespondsWithErrorIfPremiumKeyIsUsed() {
$this->services_endpoint->bridge = Stub::make(
new Bridge(),
array('checkPremiumKey' => array('state' => Bridge::PREMIUM_KEY_USED)),
array('checkPremiumKey' => array('state' => Bridge::PREMIUM_KEY_ALREADY_USED)),
$this
);
$response = $this->services_endpoint->verifyPremiumKey($this->data);