You are here

public function RegistrationTestCase::setHostEntitySettings in Entity Registration 8

File

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

Class

RegistrationTestCase
@file Tests for the Registration module

Namespace

Drupal\registration\Tests

Code

public function setHostEntitySettings(array $settings = []) {

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