You are here

function RegistrationTestCase::setHostEntitySettings in Entity Registration 8.2

Same name in this branch
  1. 8.2 tests/registration.test \RegistrationTestCase::setHostEntitySettings()
  2. 8.2 src/RegistrationTestCase.php \Drupal\registration\RegistrationTestCase::setHostEntitySettings()
5 calls to RegistrationTestCase::setHostEntitySettings()
RegistrationAPITestCase::testHookStatus in src/RegistrationAPITestCase.php
Test hook_registration_status().
RegistrationStandardTestCase::testHostEntitySettings in src/RegistrationStandardTestCase.php
Tests entity update helper.
RegistrationStandardTestCase::testHostRegistrationStatus in src/RegistrationStandardTestCase.php
Check internal status modifiers.
RegistrationStandardTestCase::testRegistrationCreateAccess in src/RegistrationStandardTestCase.php
RegistrationStandardTestCase::testRegistrationForm in src/RegistrationStandardTestCase.php
Tests for the registration add/edit form.

File

src/RegistrationTestCase.php, line 79
Tests for the Registration module

Class

RegistrationTestCase
@file Tests for the Registration module

Namespace

Drupal\registration

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);
}