function AddForumTest::testAddForum in SimpleTest 6
File
- tests/
forum_module.test, line 97
Class
Code
function testAddForum() {
// Attempt to create a forum
$web_user = $this
->drupalCreateUserRolePerm(array(
'access administration pages',
'administer forums',
));
$this
->drupalLoginUser($web_user);
// Create the forum, all assertions are handled in the function
$forum = $this
->createForum();
// Delete the forum we created
if (!empty($forum)) {
taxonomy_del_term($forum['tid']);
}
}