diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-22 21:53:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-22 21:53:20 +0000 |
commit | 10a34b84c08161f5ab7c2142d2cd45e34c10dc59 (patch) | |
tree | 168239e3a2482c0efc6f96ab399e7c3d1a20e90b /modules/forum | |
parent | e2e096985fa42336c196facdf087d6e754e6b2cc (diff) | |
download | brdo-10a34b84c08161f5ab7c2142d2cd45e34c10dc59.tar.gz brdo-10a34b84c08161f5ab7c2142d2cd45e34c10dc59.tar.bz2 |
- Patch #678526 by jhodgdon, indytechcook, jrbeeman: tests for the edit links in the forum structure page.
Diffstat (limited to 'modules/forum')
-rw-r--r-- | modules/forum/forum.test | 10 |
1 files changed, 10 insertions, 0 deletions
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. |