Update an error message [MAILPOET-2323]
This commit is contained in:
@ -276,7 +276,7 @@ class Subscribers extends APIEndpoint {
|
|||||||
$meta = [];
|
$meta = [];
|
||||||
$meta['redirect_url'] = SubscriptionUrl::getCaptchaUrl();
|
$meta['redirect_url'] = SubscriptionUrl::getCaptchaUrl();
|
||||||
return $this->badRequest([
|
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);
|
], $meta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -533,7 +533,7 @@ class SubscribersTest extends \MailPoetTest {
|
|||||||
$this->obfuscatedSegments => [$this->segment_1->id, $this->segment_2->id],
|
$this->obfuscatedSegments => [$this->segment_1->id, $this->segment_2->id],
|
||||||
]);
|
]);
|
||||||
expect($response->status)->equals(APIResponse::STATUS_BAD_REQUEST);
|
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', []);
|
$this->settings->set('captcha', []);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user