Adds test for multisite environment
This commit is contained in:
@ -107,6 +107,12 @@ class CronHelperTest extends \MailPoetTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function testItGetsSubsiteUrlOnMultisiteEnvironment() {
|
||||||
|
if((boolean)getenv('MULTISITE') === true) {
|
||||||
|
expect(CronHelper::getSiteUrl())->contains(getenv('WP_TEST_MULTISITE_SLUG'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function testItEnforcesExecutionLimit() {
|
function testItEnforcesExecutionLimit() {
|
||||||
$time = microtime(true);
|
$time = microtime(true);
|
||||||
expect(CronHelper::enforceExecutionLimit($time))->null();
|
expect(CronHelper::enforceExecutionLimit($time))->null();
|
||||||
|
Reference in New Issue
Block a user