Fix a unit test [MAILPOET-743]

This commit is contained in:
Alexey Stoletniy
2017-01-26 23:14:01 +03:00
parent f2ad7ee34c
commit 1a42ae4cca

View File

@ -48,8 +48,8 @@ class ServicesTest extends MailPoetTest {
$this
);
$response = $this->services_endpoint->verifyMailPoetKey($this->data);
expect($response->status)->equals(APIResponse::STATUS_NOT_FOUND);
expect($response->errors[0]['message'])->contains($date->format('Y-m-d'));
expect($response->status)->equals(APIResponse::STATUS_OK);
expect($response->data['message'])->contains($date->format('Y-m-d'));
}
function testItRespondsWithErrorIfServiceIsUnavailable() {