2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
@@ -25,7 +25,7 @@ class ForumTestCase extends DrupalWebTestCase {
...
@@ -25,7 +25,7 @@ class ForumTestCase extends DrupalWebTestCase {
functionsetUp(){
functionsetUp(){
parent::setUp('taxonomy','comment','forum');
parent::setUp('taxonomy','comment','forum');
// Create users.
// 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->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->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());
$this->nid_user=$this->drupalCreateUser(array());
...
@@ -36,27 +36,27 @@ class ForumTestCase extends DrupalWebTestCase {
...
@@ -36,27 +36,27 @@ class ForumTestCase extends DrupalWebTestCase {
*/
*/
functiontestForum(){
functiontestForum(){
// Do the admin tests.
// Do the admin tests.
$this->doAdminTests($this->big_user);
$this->doAdminTests($this->admin_user);
// Generate topics to populate the active forum block.
// Generate topics to populate the active forum block.
$this->generateForumTopics($this->forum);
$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);
$this->drupalLogin($this->nid_user);
// View the forum topics.
$this->viewForumTopics($this->nids);
$this->viewForumTopics($this->nids);
// Do basic tests for the any forum user.
// Do basic tests for the any forum user.
$this->doBasicTests($this->any_user,TRUE);
$this->doBasicTests($this->any_user,TRUE);
// Create another forum node for the any forum user.
// Create another forum node for the any forum user.