Replace expect()->null() with verify()->null()

codeception/verify 2.1 removed support for expect()->null() so we need
to replace it with verify()->null().

[MAILPOET-5664]
This commit is contained in:
Rodrigo Primo
2023-10-18 15:38:01 -03:00
committed by David Remer
parent 997f635d4a
commit 709be1d541
74 changed files with 268 additions and 268 deletions

View File

@@ -17,12 +17,12 @@ class FormsRepositoryTest extends \MailPoetTest {
$form = $this->createForm('Form 1');
expect($this->repository->findOneById($form->getId()))->isInstanceOf(FormEntity::class);
$this->repository->delete($form);
expect($form->getId())->null();
verify($form->getId())->null();
}
public function testItCanTrashForm() {
$form = $this->createForm('Form 1');
expect($form->getDeletedAt())->null();
verify($form->getDeletedAt())->null();
$this->repository->trash($form);
expect($form->getDeletedAt())->notNull();
}
@@ -32,7 +32,7 @@ class FormsRepositoryTest extends \MailPoetTest {
$this->repository->trash($form);
expect($form->getDeletedAt())->notNull();
$this->repository->restore($form);
expect($form->getDeletedAt())->null();
verify($form->getDeletedAt())->null();
}
private function createForm(string $name): FormEntity {