From 7ca234d92c19bfc34d52fbb139636fe3ad8dc820 Mon Sep 17 00:00:00 2001 From: wxa Date: Mon, 2 Sep 2019 12:10:22 +0300 Subject: [PATCH] Update an error message [MAILPOET-2323] --- lib/API/JSON/v1/Subscribers.php | 2 +- tests/integration/API/JSON/v1/SubscribersTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/API/JSON/v1/Subscribers.php b/lib/API/JSON/v1/Subscribers.php index 48423400e3..06362c6a29 100644 --- a/lib/API/JSON/v1/Subscribers.php +++ b/lib/API/JSON/v1/Subscribers.php @@ -276,7 +276,7 @@ class Subscribers extends APIEndpoint { $meta = []; $meta['redirect_url'] = SubscriptionUrl::getCaptchaUrl(); return $this->badRequest([ - APIError::BAD_REQUEST => WPFunctions::get()->__('Please check the CAPTCHA.', 'mailpoet'), + APIError::BAD_REQUEST => WPFunctions::get()->__('Please fill in the CAPTCHA.', 'mailpoet'), ], $meta); } } diff --git a/tests/integration/API/JSON/v1/SubscribersTest.php b/tests/integration/API/JSON/v1/SubscribersTest.php index d309cff9f2..36136b96e6 100644 --- a/tests/integration/API/JSON/v1/SubscribersTest.php +++ b/tests/integration/API/JSON/v1/SubscribersTest.php @@ -533,7 +533,7 @@ class SubscribersTest extends \MailPoetTest { $this->obfuscatedSegments => [$this->segment_1->id, $this->segment_2->id], ]); expect($response->status)->equals(APIResponse::STATUS_BAD_REQUEST); - expect($response->errors[0]['message'])->equals('Please check the CAPTCHA.'); + expect($response->errors[0]['message'])->equals('Please fill in the CAPTCHA.'); $this->settings->set('captcha', []); }