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
@@ -17,11 +17,11 @@ class AutomatedLatestContentTest extends \MailPoetTest {
|
||||
|
||||
public function testItGetsPostTypes() {
|
||||
$response = $this->endpoint->getPostTypes();
|
||||
expect($response->data)->notEmpty();
|
||||
verify($response->data)->notEmpty();
|
||||
foreach ($response->data as $postType) {
|
||||
expect($postType)->count(2);
|
||||
expect($postType['name'])->notEmpty();
|
||||
expect($postType['label'])->notEmpty();
|
||||
verify($postType['name'])->notEmpty();
|
||||
verify($postType['label'])->notEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user