function PathModuleTestCase::setUp in SimpleTest 6
Create user, setup permissions, log user in, and create a node.
File
- tests/
path_module.test, line 16
Class
Code
function setUp() {
parent::setUp();
$this
->drupalModuleEnable('path');
// create and login user
$web_user = $this
->drupalCreateUserRolePerm(array(
'edit own page content',
'create page content',
'administer url aliases',
'create url aliases',
));
$this
->drupalLoginUser($web_user);
}