function UltimateCronRulesUnitTestCase::setUp in Ultimate Cron 7.2
Same name and namespace in other branches
- 8 tests/rules.test \UltimateCronRulesUnitTestCase::setUp()
- 6 tests/rules.test \UltimateCronRulesUnitTestCase::setUp()
- 7 tests/rules.test \UltimateCronRulesUnitTestCase::setUp()
Sets up unit test environment.
Unlike DrupalWebTestCase::setUp(), DrupalUnitTestCase::setUp() does not install modules because tests are performed without accessing the database. Any required files must be explicitly included by the child class setUp() method.
Overrides DrupalUnitTestCase::setUp
File
- tests/
rules.test, line 9 - Tests for Ultimate Cron's cron parser
Class
Code
function setUp() {
parent::setUp();
include_once __DIR__ . '/../CronRule.class.php';
include_once __DIR__ . '/../ultimate_cron.plugin.inc';
include_once __DIR__ . '/../plugins/ultimate_cron/scheduler/crontab.class.php';
}