diff options
Diffstat (limited to 'modules/forum/forum.test')
-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 cf430b9e5..ab50e1e04 100644 --- a/modules/forum/forum.test +++ b/modules/forum/forum.test @@ -75,6 +75,16 @@ class ForumTestCase extends DrupalWebTestCase { $this->createForumTopic($this->forum, FALSE); $this->createForumTopic($this->forum, FALSE); $this->drupalGet('node'); + + // Test adding a comment to a forum topic. + $node = $this->createForumTopic($this->forum, FALSE); + $this->drupalPost("node/$node->nid", array('comment' => $this->randomName()), t('Save')); + $this->assertResponse(200); + + // Test editing a forum topic that has a comment. + $this->drupalLogin($this->any_user); + $this->drupalPost("node/$node->nid/edit", array(), t('Save')); + $this->assertResponse(200); } /** |