Replace expect()->regExp() with verify()->stringMatchesRegExp()

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

[MAILPOET-5664]
This commit is contained in:
Rodrigo Primo
2023-10-19 18:19:05 -03:00
committed by David Remer
parent 2ced2b4afa
commit 8bc4d78c68
9 changed files with 28 additions and 28 deletions

View File

@@ -155,7 +155,7 @@ class SystemReportCollectorTest extends \MailPoetTest {
$wp = new WPFunctions;
$wp->addFilter('mailpoet_cron_request_url', $filter);
$systemInfoData = $this->systemInfoData = $this->diContainer->get(SystemReportCollector::class)->getData();
expect($systemInfoData['MailPoet sending info'])->regExp('!http:\/\/custom_url\/!');
verify($systemInfoData['MailPoet sending info'])->stringMatchesRegExp('!http:\/\/custom_url\/!');
$wp->removeFilter('mailpoet_cron_request_url', $filter);
}