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:
committed by
David Remer
parent
997f635d4a
commit
709be1d541
@@ -403,8 +403,8 @@ class ServicesTest extends \MailPoetTest {
|
||||
$servicesEndpoint = $this->createServicesEndpointWithMocks(['bridge' => $bridge]);
|
||||
$response = $servicesEndpoint->checkMSSKey($this->data);
|
||||
|
||||
expect($this->settings->get('public_id', null))->null();
|
||||
expect($this->settings->get('new_public_id', null))->null();
|
||||
verify($this->settings->get('public_id', null))->null();
|
||||
verify($this->settings->get('new_public_id', null))->null();
|
||||
}
|
||||
|
||||
public function testItRespondsWithPublicIdForPremium() {
|
||||
@@ -445,8 +445,8 @@ class ServicesTest extends \MailPoetTest {
|
||||
$servicesEndpoint = $this->createServicesEndpointWithMocks(['bridge' => $bridge]);
|
||||
$response = $servicesEndpoint->checkPremiumKey($this->data);
|
||||
|
||||
expect($this->settings->get('public_id', null))->null();
|
||||
expect($this->settings->get('new_public_id', null))->null();
|
||||
verify($this->settings->get('public_id', null))->null();
|
||||
verify($this->settings->get('new_public_id', null))->null();
|
||||
}
|
||||
|
||||
public function testCongratulatoryEmailIsSent() {
|
||||
|
Reference in New Issue
Block a user