public function ProtectedNodePerTypePassword::adminCreateProtectedNode in Protected Node 7
Same name and namespace in other branches
- 1.0.x tests/protected_node.per_type.test \ProtectedNodePerTypePassword::adminCreateProtectedNode()
Helper method to create a protected node with the admin user.
Return value
object A node object.
3 calls to ProtectedNodePerTypePassword::adminCreateProtectedNode()
- ProtectedNodePerTypePassword::testAllowedView in tests/
protected_node.per_type.test - Test function.
- ProtectedNodePerTypePassword::testAllowedViewWrongPassword in tests/
protected_node.per_type.test - Test function.
- ProtectedNodePerTypePassword::testAuthenticatedNonAllowedView in tests/
protected_node.per_type.test - Test function.
File
- tests/
protected_node.per_type.test, line 126 - Test protected node per type functionality.
Class
- ProtectedNodePerTypePassword
- Configure protected_node to use per type password.
Code
public function adminCreateProtectedNode() {
// Log in as Admin.
$this
->drupalLogin($this->adminUser);
// Create a new page node.
$node = $this
->createProtectedNode();
// Once the node created logout the user.
$this
->drupalLogout();
return $node;
}