public function PatternsSystemTestCase::setUp in Patterns 7
Same name and namespace in other branches
- 7.2 tests/system/system.test \PatternsSystemTestCase::setUp()
Setups the testing environment.
Loads the patterns and libraries modules plus all those that are passed as parameters; skips the Patterns splash screen.
Parameters
array $user_modules The array of modules to enable:
bool $first (optional) If TRUE, the Patterns splash: screen is not skipped.
Overrides PatternsTestCase::setUp
File
- tests/
system/ system.test, line 19 - SimpleTests for the System component of Patterns.
Class
- PatternsSystemTestCase
- @file SimpleTests for the System component of Patterns.
Code
public function setUp($modules = array(), $first = FALSE) {
$this->system_tests_dir = $this
->getPatternsTestDir() . 'system/';
// Enable any modules required for the tests.
$modules = array(
'patterns_components',
'patterns_yamlparser',
);
parent::setUp($modules);
}