public function UnitsDefaultWebTestCase::setUp in Units of Measurement 7.2
Same name and namespace in other branches
- 7 units_default/units_default.test \UnitsDefaultWebTestCase::setUp()
Set up method.
Overrides DrupalWebTestCase::setUp
File
- units_default/
units_default.test, line 31 - Tests for Units default module.
Class
- UnitsDefaultWebTestCase
- @file Tests for Units default module.
Code
public function setUp($modules = array()) {
$modules[] = 'units_default';
parent::setUp($modules);
$this->admin = $this
->drupalCreateUser(array(
'administer default units',
));
$this
->drupalLogin($this->admin);
}