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