protected function ForumAccessBaseTestCase::createForumTopicWithTitle in Forum Access 7
1 call to ForumAccessBaseTestCase::createForumTopicWithTitle()
- ForumAccessBaseTestCase::checkForum in tests/
forum_access_test_base.php - Check the set of permissions in one forum.
File
- tests/
forum_access_test_base.php, line 326 - Base class with auxiliary functions for forum access module tests.
Class
- ForumAccessBaseTestCase
- Base test class for the Forum Access module.
Code
protected function createForumTopicWithTitle($forum, $title) {
$node = $this
->createForumTopic((array) $forum);
$node = node_load($node->nid);
$node->title = $title;
$node->shadow = FALSE;
node_save($node);
return $node;
}