Skip to content
Snippets Groups Projects
Commit 10a34b84 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #678526 by jhodgdon, indytechcook, jrbeeman: tests for the edit links...

- Patch #678526 by jhodgdon, indytechcook, jrbeeman: tests for the edit links in the forum structure page.
parent e2e09698
No related branches found
No related tags found
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
......@@ -137,8 +137,18 @@ class ForumTestCase extends DrupalWebTestCase {
$this->container = $this->editForumTaxonomy();
// Create forum container.
$this->container = $this->createForum('container');
// Verify "edit container" link exists and functions correctly.
$this->drupalGet('admin/structure/forum');
$this->clickLink('edit container');
$this->assertRaw('Edit container', t('Followed the link to edit the container'));
// Create forum inside the forum container.
$this->forum = $this->createForum('forum', $this->container['tid']);
// Verify the "edit forum" link exists and functions correctly.
$this->drupalGet('admin/structure/forum');
$this->clickLink('edit forum');
$this->assertRaw('Edit forum', t('Followed the link to edit the forum'));
// Navigate back to forum structure page.
$this->drupalGet('admin/structure/forum');
// Create second forum in container.
$this->delete_forum = $this->createForum('forum', $this->container['tid']);
// Save forum overview.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment