You are here

protected function PMPAPIPushWebTestCase::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 PMPAPIPushWebTestCase::setUpEntityMapping()
PMPAPIPushWebTestCase::setUp in pmpapi_push/tests/pmpapi_push.test
Sets up the test environment.

File

pmpapi_push/tests/pmpapi_push.test, line 79

Class

PMPAPIPushWebTestCase
Tests the functionality of the PMPAPI push 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']);
}