From 10a34b84c08161f5ab7c2142d2cd45e34c10dc59 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 22 Apr 2010 21:53:20 +0000 Subject: - Patch #678526 by jhodgdon, indytechcook, jrbeeman: tests for the edit links in the forum structure page. --- modules/forum/forum.test | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules') diff --git a/modules/forum/forum.test b/modules/forum/forum.test index 79b0bec19..c1076fe94 100644 --- a/modules/forum/forum.test +++ b/modules/forum/forum.test @@ -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. -- cgit v1.2.3