protected function PMPAPIPermissionsWebTestCase::setUpEntityMapping in Public Media Platform API Integration 7
Sets up the entity/doc mapping.
Parameters
array $settings: Seetings needed for the mappings
1 call to PMPAPIPermissionsWebTestCase::setUpEntityMapping()
- PMPAPIPermissionsWebTestCase::setUp in pmpapi_permissions/
tests/ pmpapi_permissions.test - Sets up the test environment.
File
- pmpapi_permissions/
tests/ pmpapi_permissions.test, line 73
Class
- PMPAPIPermissionsWebTestCase
- Tests the functionality of the PMPAPI permissions module.
Code
protected function setUpEntityMapping($settings) {
$uname = $settings['entity_type'] . '__' . $settings['bundle_name'];
variable_set('pmpapi_push_' . $uname . '_profile', $settings['target_profile']);
variable_set('pmpapi_push_mapping_' . $uname . '_' . $settings['target_profile'], $settings['mapping']);
}