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