protected function SchedulerRulesConditionsTest::setUp in Scheduler 8
Same name and namespace in other branches
- 2.x tests/src/Functional/SchedulerRulesConditionsTest.php \Drupal\Tests\scheduler\Functional\SchedulerRulesConditionsTest::setUp()
Overrides SchedulerBrowserTestBase::setUp
File
- tests/
src/ Functional/ SchedulerRulesConditionsTest.php, line 24
Class
- SchedulerRulesConditionsTest
- Tests the four conditions that Scheduler provides for use in Rules module.
Namespace
Drupal\Tests\scheduler\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->rulesStorage = $this->container
->get('entity_type.manager')
->getStorage('rules_reaction_rule');
$this->expressionManager = $this->container
->get('plugin.manager.rules_expression');
// Create a published node.
$this->node = $this
->drupalCreateNode([
'title' => 'Rules Test Node',
'type' => $this->type,
'uid' => $this->schedulerUser
->id(),
'status' => TRUE,
]);
}