From 1a42ae4cca09c105a8e905eed7bbd62a8ca7c675 Mon Sep 17 00:00:00 2001 From: Alexey Stoletniy Date: Thu, 26 Jan 2017 23:14:01 +0300 Subject: [PATCH] Fix a unit test [MAILPOET-743] --- tests/unit/API/Endpoints/ServicesTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/API/Endpoints/ServicesTest.php b/tests/unit/API/Endpoints/ServicesTest.php index a13b0c4bbc..1057a85230 100644 --- a/tests/unit/API/Endpoints/ServicesTest.php +++ b/tests/unit/API/Endpoints/ServicesTest.php @@ -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() {