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:
Rodrigo Primo
2023-10-18 16:38:52 -03:00
committed by David Remer
parent a1f57361c5
commit 4bc4e9b254
10 changed files with 11 additions and 11 deletions

View File

@@ -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() {