function VudNodeWebTestCase::setUp in Vote Up/Down 6.3
Same name and namespace in other branches
- 6.2 vud_node/vud_node.test \VudNodeWebTestCase::setUp()
- 7 vud_node/vud_node.test \VudNodeWebTestCase::setUp()
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- vud_node/
vud_node.test, line 23 - Test file for Vote Up/Down Node.
Class
- VudNodeWebTestCase
- @file Test file for Vote Up/Down Node.
Code
function setUp() {
parent::setUp('votingapi', 'ctools', 'vud', 'vud_node');
// Create a vud admin user
$this->admin_user = $this
->drupalCreateUser(array(
// vud
'access vote up/down statistics',
'administer vote up/down',
'reset vote up/down votes',
'use vote up/down',
// vud_node
'administer vote up/down on nodes',
'see vote up/down node stats',
'use vote up/down on nodes',
'view vote up/down count on nodes',
));
// Create a vud simple user
$this->simple_user = $this
->drupalCreateUser(array(
// vud
'access vote up/down statistics',
'use vote up/down',
'reset vote up/down votes',
// vud_node
'see vote up/down node stats',
'use vote up/down on nodes',
'view vote up/down count on nodes',
));
//@todo more users with less privileges
// Create a vud restricted user (can not interact with vud)
$this->restricted_user = $this
->drupalCreateUser();
}