Fix backend error messages

[MAILPOET-3226]
This commit is contained in:
Rostislav Wolny
2021-05-11 09:23:20 +02:00
committed by Veljko V
parent d4fbe95aef
commit 5f5e5d0860
2 changed files with 8 additions and 8 deletions

View File

@ -56,7 +56,7 @@ class DynamicSegmentsTest extends \MailPoetTest {
]);
expect($response)->isInstanceOf('\MailPoet\API\JSON\ErrorResponse');
expect($response->status)->equals(self::INVALID_DATA_RESPONSE_CODE);
expect($response->errors[0]['message'])->equals('Segment type is missing.');
expect($response->errors[0]['message'])->equals('The segment type is missing.');
}
public function testSaverReturnsErrorOnDuplicateRecord() {