function UpdateCoreUnitTestCase::setUp in Drupal 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
- modules/
update/ update.test, line 807 - This file contains tests for the Update Manager module.
Class
- UpdateCoreUnitTestCase
- Tests update functionality unrelated to the database.
Code
function setUp() {
parent::setUp('update');
module_load_include('inc', 'update', 'update.fetch');
}