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