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', []); }