protected function PMPAPIPermissionsWebTestCase::createNodeWithPermissions in Public Media Platform API Integration 7
3 calls to PMPAPIPermissionsWebTestCase::createNodeWithPermissions()
- PMPAPIPermissionsWebTestCase::testPmpAPIPermissionsPushNodeWhitelistAll in pmpapi_permissions/
tests/ pmpapi_permissions.test - Pushes a node to the PMP.
- PMPAPIPermissionsWebTestCase::testPmpAPIPermissionsPushNodeWhitelistGroup in pmpapi_permissions/
tests/ pmpapi_permissions.test - Pushes a node to the PMP.
- PMPAPIPermissionsWebTestCase::testPmpAPIPermissionsPushNodeWhitelistOnlyUser in pmpapi_permissions/
tests/ pmpapi_permissions.test - Pushes a node to the PMP.
File
- pmpapi_permissions/
tests/ pmpapi_permissions.test, line 179
Class
- PMPAPIPermissionsWebTestCase
- Tests the functionality of the PMPAPI permissions module.
Code
protected function createNodeWithPermissions($group = NULL) {
$settings = array();
$permission = pmp_permissions_create_permission($group);
if ($permission !== NULL) {
$settings['pmpapi_permissions'] = array(
$permission,
);
}
return $this
->createNode($settings);
}