function VudCommentWebTestCase::setUp in Vote Up/Down 7
Same name and namespace in other branches
- 6.3 vud_comment/vud_comment.test \VudCommentWebTestCase::setUp()
- 6.2 vud_comment/vud_comment.test \VudCommentWebTestCase::setUp()
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- vud_comment/
vud_comment.test, line 23 - Test file for Vote Up/Down Comment.
Class
- VudCommentWebTestCase
- @file Test file for Vote Up/Down Comment.
Code
function setUp() {
parent::setUp('votingapi', 'ctools', 'vud', 'vud_comment');
// 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_comment
'administer vote up/down on comments',
'use vote up/down on comments',
));
// 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_comment
'use vote up/down on comments',
));
// Create a vud restricted user (can not interact with vud)
$this->restricted_user = $this
->drupalCreateUser();
}