function NodehierarchyTestCase::createChildType in Node Hierarchy 6
Create a child node type
Return value
Created node type object.
1 call to NodehierarchyTestCase::createChildType()
File
- tests/
nodehierarchy.test, line 59
Class
- NodehierarchyTestCase
- Base class for nodehierarchy tests. Defines helper functions.
Code
function createChildType() {
$child_type_name = 'simpletest' . mt_rand();
$type = $this
->drupalCreateContentType(array(
'type' => $child_type_name,
'name' => $child_type_name,
'nh_child' => 1,
));
return $type;
}