Change admin notices messages

This commit is contained in:
Amine Ben hammou
2019-06-18 12:25:22 +01:00
committed by M. Shull
parent a2700246f0
commit 7e5872eb92
4 changed files with 14 additions and 14 deletions

View File

@@ -111,12 +111,12 @@ class NewslettersTest extends \MailPoetTest {
$response = $this->endpoint->get(); // missing id
expect($response->status)->equals(APIResponse::STATUS_NOT_FOUND);
expect($response->errors[0]['message'])
->equals('This newsletter does not exist.');
->equals('This email does not exist.');
$response = $this->endpoint->get(['id' => 'not_an_id']);
expect($response->status)->equals(APIResponse::STATUS_NOT_FOUND);
expect($response->errors[0]['message'])
->equals('This newsletter does not exist.');
->equals('This email does not exist.');
$wp = Stub::make(new WPFunctions, [
'applyFilters' => asCallable([WPHooksHelper::class, 'applyFilters']),
@@ -421,7 +421,7 @@ class NewslettersTest extends \MailPoetTest {
);
expect($response->status)->equals(APIResponse::STATUS_NOT_FOUND);
expect($response->errors[0]['message'])
->equals('This newsletter does not exist.');
->equals('This email does not exist.');
}
function testItReschedulesPastDuePostNotificationsWhenStatusIsSetBackToActive() {