You are here

protected function RngRegistrationEntityTest::setUp in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/RngRegistrationEntityTest.php \Drupal\Tests\rng\Kernel\RngRegistrationEntityTest::setUp()
  2. 3.x tests/src/Kernel/RngRegistrationEntityTest.php \Drupal\Tests\rng\Kernel\RngRegistrationEntityTest::setUp()

Overrides RngKernelTestBase::setUp

File

tests/src/Kernel/RngRegistrationEntityTest.php, line 44

Class

RngRegistrationEntityTest
Tests registration entities.

Namespace

Drupal\Tests\rng\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->eventManager = $this->container
    ->get('rng.event_manager');
  $this
    ->installEntitySchema('entity_test');
  $this
    ->installEntitySchema('registration');
  $this
    ->installEntitySchema('registrant');
  $this
    ->installEntitySchema('rng_rule');
  $this
    ->installEntitySchema('rng_rule_component');
  $this
    ->installEntitySchema('user');
  $this
    ->installConfig('rng');
  $this
    ->installSchema('system', array(
    'sequences',
  ));
  $this->registrationType = $this
    ->createRegistrationType();
  $this
    ->createEventType('entity_test', 'entity_test');
}