protected function PMPAPIPullWebTestCase::setUpEntityMapping in Public Media Platform API Integration 7
Sets up the entity/doc mapping.
Parameters
array $settings: Settings needed for the mappings
1 call to PMPAPIPullWebTestCase::setUpEntityMapping()
- PMPAPIPullWebTestCase::setUp in pmpapi_pull/
tests/ pmpapi_pull.test - Sets up the test environment.
File
- pmpapi_pull/
tests/ pmpapi_pull.test, line 81
Class
- PMPAPIPullWebTestCase
- Tests the functionality of the PMPAPI pull module.
Code
protected function setUpEntityMapping($settings) {
$uname = $settings['entity_type'] . '__' . $settings['bundle_name'];
variable_set('pmpapi_pull_' . $uname . '_profile', $settings['mapped_profile']);
variable_set('pmpapi_pull_mapping_' . $uname . '_' . $settings['mapped_profile'], $settings['mapping']);
}