You are here

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

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

Overrides RngKernelTestBase::setUp

File

tests/src/Kernel/RngRegistrationAccessTest.php, line 41

Class

RngRegistrationAccessTest
Tests ability to register for events..

Namespace

Drupal\Tests\rng\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->eventManager = \Drupal::service('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');
}