You are here

protected function FulfillmentRulesEventsTest::setUp in Ubercart 8.4

Overrides FulfillmentTestBase::setUp

File

shipping/uc_fulfillment/tests/src/Functional/FulfillmentRulesEventsTest.php, line 36

Class

FulfillmentRulesEventsTest
Tests the one event that uc_fulfillment provides for use in Rules module.

Namespace

Drupal\Tests\uc_fulfillment\Functional

Code

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');
}