public function NodeAccessExampleTestCase::setUp in Examples for Developers 7
Enable modules and create user with specific permissions.
Overrides DrupalWebTestCase::setUp
File
- node_access_example/
node_access_example.test, line 29 - Tests for Node Access example module.
Class
- NodeAccessExampleTestCase
- Functional tests for the Node Access Example module.
Code
public function setUp() {
parent::setUp('node_access_example', 'search');
node_access_rebuild();
}