protected function BookAccessRuleTestCase::createBookNode in Book access 6.2
Creates a book node.
Parameters
$bid: The book ID, or 'new' to create new book.
$parent: Parent book ID.
1 call to BookAccessRuleTestCase::createBookNode()
- BookAccessRuleTestCase::createBook in ./
book_access.test - Creates a new book with a page hierarchy.
File
- ./
book_access.test, line 46
Class
Code
protected function createBookNode($bid) {
$settings = array(
'type' => 'book',
'title' => $this
->randomName(10) . ' - book access test node: ' . $this
->randomName(10),
'body' => 'Book access test body ' . $this
->randomName(32) . ' (' . $this
->randomName(32) . ').',
'book' => array(
'bid' => $bid,
),
);
return $this
->drupalCreateNode($settings);
}