diff --git a/tests/integration/Cron/CronHelperTest.php b/tests/integration/Cron/CronHelperTest.php index 7cbbfaef6c..eccf760780 100644 --- a/tests/integration/Cron/CronHelperTest.php +++ b/tests/integration/Cron/CronHelperTest.php @@ -254,7 +254,7 @@ class CronHelperTest extends \MailPoetTest { public function testItGetsSubsiteUrlOnMultisiteEnvironment() { if ((boolean)getenv('MULTISITE') === true) { - expect($this->cronHelper->getSiteUrl())->contains(getenv('WP_TEST_MULTISITE_SLUG')); + expect($this->cronHelper->getSiteUrl())->stringContainsString((string)getenv('WP_TEST_MULTISITE_SLUG')); } }