diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-20 00:28:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-20 00:28:16 +0000 |
commit | eeb7b53ef6c2098a0e428f98dd578eaa78a1ed89 (patch) | |
tree | 00f073f3affe4fb1f1877ccaf2d9de027da860a7 /modules/forum/forum.test | |
parent | 07eee25abec9846b0f181ab07514a7b4e56020ac (diff) | |
download | brdo-eeb7b53ef6c2098a0e428f98dd578eaa78a1ed89.tar.gz brdo-eeb7b53ef6c2098a0e428f98dd578eaa78a1ed89.tar.bz2 |
- Patch #601938 by mfb: fixed some forum exceptions and added tests.
Diffstat (limited to 'modules/forum/forum.test')
-rw-r--r-- | modules/forum/forum.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/forum/forum.test b/modules/forum/forum.test index 28995361f..5bf8501cc 100644 --- a/modules/forum/forum.test +++ b/modules/forum/forum.test @@ -68,6 +68,13 @@ class ForumTestCase extends DrupalWebTestCase { $this->drupalGet('forum'); $this->assertRaw("<td class=\"topics\">\n 6 </td>"); $this->assertRaw('<td class="posts">6</td>'); + + // Test loading multiple forum nodes on the front page. + $this->drupalLogin($this->drupalCreateUser(array('administer content types', 'create forum content'))); + $this->drupalPost('admin/structure/types/manage/forum', array('node_options[promote]' => 'promote'), t('Save content type')); + $this->createForumTopic($this->forum, FALSE); + $this->createForumTopic($this->forum, FALSE); + $this->drupalGet('node'); } /** |