Replace expect()->startsWith() with verify()->stringStartsWith()
codeception/verify 2.1 removed support for expect()->startsWith() so we need to replace it with verify()->stringStartsWith(). [MAILPOET-5664]
This commit is contained in:
committed by
David Remer
parent
a1f57361c5
commit
4bc4e9b254
@@ -135,7 +135,7 @@ class FormsTest extends \MailPoetTest {
|
||||
wp_set_current_user(0);
|
||||
$response = $this->endpoint->saveEditor($form);
|
||||
verify($response->status)->equals(APIResponse::STATUS_FORBIDDEN);
|
||||
expect($response->errors[0]['message'])->startsWith('Only administrator can');
|
||||
verify($response->errors[0]['message'])->stringStartsWith('Only administrator can');
|
||||
}
|
||||
|
||||
public function testItCanExtractListsFromListSelectionBlock() {
|
||||
|
Reference in New Issue
Block a user