public function DateNowUnitTestCase::setUp in Date 7.3
Same name and namespace in other branches
- 7.2 tests/DateNowUnitTestCase.test \DateNowUnitTestCase::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/
DateNowUnitTestCase.test, line 27 - Test Date Now unit tests.
Class
- DateNowUnitTestCase
- Test Date Now unit tests.
Code
public function setUp() {
drupal_load('module', 'date_api');
parent::setUp();
}