protected function OrderRulesTestBase::setUp in Ubercart 8.4
Overrides BrowserTestBase::setUp
File
- uc_order/
tests/ src/ Functional/ OrderRulesTestBase.php, line 57
Class
- OrderRulesTestBase
- Tests the four events that uc_order provides for use in Rules module.
Namespace
Drupal\Tests\uc_order\FunctionalCode
protected function setUp() {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser([
'access administration pages',
'access content',
'view all orders',
'delete orders',
'unconditionally delete orders',
'edit orders',
]);
// 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');
}