Replace expect()->isEmpty() with verify()->empty()
codeception/verify 2.1 removed support for expect()->isEmpty() so we need to replace it with verify()->empty(). [MAILPOET-5664]
This commit is contained in:
committed by
David Remer
parent
1865fc8930
commit
e4136fee8c
@@ -203,7 +203,7 @@ class SegmentsTest extends \MailPoetTest {
|
||||
|
||||
public function testItCanDeleteASegment() {
|
||||
$response = $this->endpoint->delete(['id' => $this->segment3->getId()]);
|
||||
expect($response->data)->isEmpty();
|
||||
verify($response->data)->empty();
|
||||
verify($response->status)->equals(APIResponse::STATUS_OK);
|
||||
verify($response->meta['count'])->equals(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user