You are here

protected function RngRegistrationEntityTest::setUp in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/RngRegistrationEntityTest.php \Drupal\Tests\rng\Kernel\RngRegistrationEntityTest::setUp()
  2. 8 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', [
    'sequences',
  ]);
  $this->registrationType = $this
    ->createRegistrationType();
  $this
    ->createEventType('entity_test', 'entity_test');
}