protected function PaymentRulesEventsTest::setUp in Ubercart 8.4
Overrides UbercartBrowserTestBase::setUp
File
- payment/
uc_payment/ tests/ src/ Functional/ PaymentRulesEventsTest.php, line 58
Class
- PaymentRulesEventsTest
- Tests the one event that uc_payment provides for use in Rules module.
Namespace
Drupal\Tests\uc_payment\FunctionalCode
protected function setUp() {
parent::setUp();
// All of the events we're testing are or can be initiated
// by an administrator's actions.
$this
->drupalLogin($this->adminUser);
$this->rulesStorage = $this->container
->get('entity_type.manager')
->getStorage('rules_reaction_rule');
$this->expressionManager = $this->container
->get('plugin.manager.rules_expression');
}