@@ -25,7 +25,7 @@ class ForumTestCase extends DrupalWebTestCase {
functionsetUp(){
parent::setUp('taxonomy','comment','forum');
// Create users.
$this->big_user=$this->drupalCreateUser(array('administer blocks','administer forums','administer menu','administer taxonomy','create forum content'));// 'access administration pages'));
$this->admin_user=$this->drupalCreateUser(array('administer blocks','administer forums','administer menu','administer taxonomy','create forum content'));// 'access administration pages'));
$this->own_user=$this->drupalCreateUser(array('create forum content','edit own forum content','delete own forum content'));
$this->any_user=$this->drupalCreateUser(array('create forum content','edit any forum content','delete any forum content','access administration pages'));
$this->nid_user=$this->drupalCreateUser(array());
...
...
@@ -36,27 +36,27 @@ class ForumTestCase extends DrupalWebTestCase {
*/
functiontestForum(){
// Do the admin tests.
$this->doAdminTests($this->big_user);
$this->doAdminTests($this->admin_user);
// Generate topics to populate the active forum block.
$this->generateForumTopics($this->forum);
// Login the nid user to view the forum topics and generate an Active forum topics list (FAILS).
// Login the nid user to view the forum topics and generate an active forum
// topics list.
$this->drupalLogin($this->nid_user);
// View the forum topics.
$this->viewForumTopics($this->nids);
// Do basic tests for the any forum user.
$this->doBasicTests($this->any_user,TRUE);
// Create another forum node for the any forum user.