Update an error message [MAILPOET-2323]

This commit is contained in:
wxa
2019-09-02 12:10:22 +03:00
committed by M. Shull
parent ea0a3ff159
commit 7ca234d92c
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}

View File

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