You are here

protected function RngEventMetaTest::setUp in RNG - Events and Registrations 8.2

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

Overrides RngKernelTestBase::setUp

File

tests/src/Kernel/RngEventMetaTest.php, line 47

Class

RngEventMetaTest
Tests the event meta class.

Namespace

Drupal\Tests\rng\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->eventManager = $this->container
    ->get('rng.event_manager');
  $this->eventType = $this
    ->createEventType('entity_test', 'entity_test');
  $this->unlimited = EventMetaInterface::CAPACITY_UNLIMITED;
  $this
    ->installEntitySchema('entity_test');
}