public function realistic_dummy_content_UnitTestCase::setUp in Realistic Dummy Content 7
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
- api/
tests/ realistic_dummy_content_api.unit.test, line 49 - This file contains the testing code for this module
Class
- realistic_dummy_content_UnitTestCase
- The test case
Code
public function setUp() {
// specifically include files which contain functions to test.
module_load_include('module', 'realistic_dummy_content_api');
parent::setUp();
}