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