public function ColectomyTestCase::setUp in Colectomy 7
Set up function creates a user and assigns associated privileges.
Overrides DrupalWebTestCase::setUp
File
- tests/
colectomy.test, line 23
Class
- ColectomyTestCase
- Tests the visibility of the Colectomy managed labels.
Code
public function setUp() {
parent::setUp(array(
'colectomy',
));
$this->admin_user = $this
->drupalCreateUser(array(
'use text format full_html',
'access administration pages',
'administer content types',
'administer nodes',
'bypass node access',
));
$this
->drupalLogin($this->admin_user);
}