public function ViewsAtomTestCase::vaRandomNodeType in Views Atom 6
Picks one random node type of the given type
Return value
machine name of a node type
1 call to ViewsAtomTestCase::vaRandomNodeType()
- ViewsAtomTestCase::vaNewNode in tests/
views_atom.test - Creates a random new node
File
- tests/
views_atom.test, line 129 - Simple tests for views_atom
Class
- ViewsAtomTestCase
- Tests basic set up for publishing and consuming
Code
public function vaRandomNodeType() {
$random_node_types = $this
->vaRandomNodetypes();
$random_key = array_rand($random_node_types);
return $random_node_types[$random_key];
}