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
File
-
modules/
update/ update.test, line 809
Class
- UpdateCoreUnitTestCase
- Tests update functionality unrelated to the database.
Code
function setUp() {
parent::setUp('update');
module_load_include('inc', 'update', 'update.fetch');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.