protected function RngEventMetaTest::setUp in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/RngEventMetaTest.php \Drupal\Tests\rng\Kernel\RngEventMetaTest::setUp()
- 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\KernelCode
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');
}