Replace expect()->notEmpty() with verify()->notEmpty()
codeception/verify 2.1 removed support for expect()->notEmpty() so we need to replace it with verify()->notEmpty(). [MAILPOET-5664]
This commit is contained in:
committed by
David Remer
parent
00c5250cff
commit
5bc5b5ebd2
@@ -97,9 +97,9 @@ class FormsTest extends \MailPoetTest {
|
||||
$response = $this->endpoint->previewEditor($response->data);
|
||||
verify($response->status)->equals(APIResponse::STATUS_OK);
|
||||
$storedData = $this->wp->getTransient(PreviewPage::PREVIEW_DATA_TRANSIENT_PREFIX . $formId);
|
||||
expect($storedData['body'])->notEmpty();
|
||||
expect($storedData['styles'])->notEmpty();
|
||||
expect($storedData['settings'])->notEmpty();
|
||||
verify($storedData['body'])->notEmpty();
|
||||
verify($storedData['styles'])->notEmpty();
|
||||
verify($storedData['settings'])->notEmpty();
|
||||
}
|
||||
|
||||
public function testItCanSaveFormEditor() {
|
||||
|
Reference in New Issue
Block a user