public function DateRepeatTestCase::setUp in Date 7.2
Same name and namespace in other branches
- 6.2 tests/date_repeat.test \DateRepeatTestCase::setUp()
- 7.3 date_repeat/tests/date_repeat.test \DateRepeatTestCase::setUp()
- 7 date_repeat/tests/date_repeat.test \DateRepeatTestCase::setUp()
Implements setUp().
Overrides DrupalWebTestCase::setUp
File
- date_repeat/
tests/ date_repeat.test, line 27 - Test Date Repeat calculations.
Class
- DateRepeatTestCase
- Test date repeat functions.
Code
public function setUp(array $modules = array()) {
// Load the date_repeat module.
$modules[] = 'date_api';
$modules[] = 'date_repeat';
parent::setUp($modules);
// Make sure these two specific files are loaded.
require_once './' . drupal_get_path('module', 'date_api') . '/date_api_ical.inc';
require_once './' . drupal_get_path('module', 'date_repeat') . '/date_repeat_calc.inc';
}