You are here

function RegistrationTestCase::setHostEntitySettings in Entity Registration 7.2

Same name and namespace in other branches
  1. 8.2 tests/registration.test \RegistrationTestCase::setHostEntitySettings()
  2. 7 tests/registration.test \RegistrationTestCase::setHostEntitySettings()
6 calls to RegistrationTestCase::setHostEntitySettings()
RegistrationAPITestCase::testHookStatus in tests/registration.test
Test hook_registration_status().
RegistrationStandardTestCase::testHostEntitySettings in tests/registration.test
Tests entity update helper.
RegistrationStandardTestCase::testHostRegistrationStatus in tests/registration.test
Check internal status modifiers.
RegistrationStandardTestCase::testRegistrationCreateAccess in tests/registration.test
RegistrationStandardTestCase::testRegistrationForm in tests/registration.test
Tests for the registration add/edit form.

... See full list

File

tests/registration.test, line 64
Tests for the Registration module

Class

RegistrationTestCase
@file Tests for the Registration module

Code

function setHostEntitySettings(array $settings = array()) {

  // @todo: Remove ['settings']. Settings must be set in schema. registration_update_entity_settings() currently requires this.
  $settings['settings'] = serialize(isset($settings['settings']) ? $settings['settings'] : array());
  registration_update_entity_settings($this->host_entity_type, $this->host_entity_id, $settings);
}