protected function RngMessageRules::setUp in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/RngMessageRules.php \Drupal\Tests\rng\Kernel\RngMessageRules::setUp()
- 3.x tests/src/Kernel/RngMessageRules.php \Drupal\Tests\rng\Kernel\RngMessageRules::setUp()
Overrides RngKernelTestBase::setUp
File
- tests/
src/ Kernel/ RngMessageRules.php, line 39
Class
- RngMessageRules
- Tests RNG message rules are executed.
Namespace
Drupal\Tests\rng\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('entity_test');
$this
->installEntitySchema('registration');
$this
->installEntitySchema('registrant');
$this
->installEntitySchema('rng_rule');
$this
->installEntitySchema('rng_rule_component');
$this
->installEntitySchema('courier_template_collection');
$this
->installEntitySchema('courier_message_queue_item');
$this
->installEntitySchema('courier_email');
$this
->installEntitySchema('user');
$this
->installSchema('system', [
'sequences',
]);
$this
->installConfig('courier');
// Test trait needs.
$this->registrationType = $this
->createRegistrationType();
$this->eventType = $this
->createEventType('entity_test', 'entity_test');
$this->eventMeta = $this
->createEvent();
$event = $this->eventMeta
->getEvent();
$this->rule = $this
->createMessageRule($event);
}