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