vud_comment.test in Vote Up/Down 7
Same filename and directory in other branches
Test file for Vote Up/Down Comment.
File
vud_comment/vud_comment.testView source
<?php
/**
* @file
* Test file for Vote Up/Down Comment.
*/
class VudCommentWebTestCase extends DrupalWebTestCase {
/**
* Implementation of getInfo().
*/
public static function getInfo() {
return array(
'name' => t('Vote Up/Down Comment'),
'description' => t('Functional tests for Vote Up/Down Comment'),
'group' => t('Vote Up/down'),
);
}
/**
* Implementation of setUp().
*/
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();
}
}
Classes
Name | Description |
---|---|
VudCommentWebTestCase | @file Test file for Vote Up/Down Comment. |