public function PatternsToolbarTestCase::setUp in Patterns 7.2
Same name and namespace in other branches
- 7 tests/toolbar/toolbar.test \PatternsToolbarTestCase::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/
toolbar/ toolbar.test, line 20 - SimpleTests for the Toolbar component of Patterns.
Class
- PatternsToolbarTestCase
- @file SimpleTests for the Toolbar component of Patterns.
Code
public function setUp($modules = array(), $first = FALSE) {
$this->toolbar_tests_dir = $this
->getPatternsTestDir() . 'toolbar/';
// Enable any modules required for the tests.
$modules = array(
'patterns_components',
'patterns_yamlparser',
);
parent::setUp($modules);
//$this->adm_user = $this->drupalCreateUser(array('administer site configuration'));
//$this->drupalLogin($this->adm_user);
}