function CacheActionsCssJsTestCase::setUp in Cache Actions 6.2
Same name and namespace in other branches
- 7.2 cache_actions.test \CacheActionsCssJsTestCase::setUp()
- 7 cache_actions.test \CacheActionsCssJsTestCase::setUp()
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix. A temporary files directory is created with the same name as the database prefix.
Parameters
...: List of modules to enable for the duration of the test. This can be either a single array or a variable number of string arguments.
Overrides CacheActionsTestCase::setUp
File
- ./
cache_actions.test, line 270 - This file contains the tests for Cache Actions. All tests depend on the panels, views and rules that are defined by the cache actions test module.
Class
- CacheActionsCssJsTestCase
- Tests for css and js.
Code
function setUp() {
parent::setUp();
// Make sure caching for css and js is set.
variable_set('preprocess_js', 1);
variable_set('preprocess_css', 1);
}