You are here

function UltimateCronRulesUnitTestCase::setUp in Ultimate Cron 6

Same name and namespace in other branches
  1. 8 tests/rules.test \UltimateCronRulesUnitTestCase::setUp()
  2. 7.2 tests/rules.test \UltimateCronRulesUnitTestCase::setUp()
  3. 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

UltimateCronRulesUnitTestCase
@file

Code

function setUp() {
  parent::setUp('ultimate_cron');
  module_load_include('module', 'ultimate_cron');
}