You are here

protected function CommerceWebDriverTestBase::setUp in Commerce Core 8.2

Overrides BrowserTestBase::setUp

11 calls to CommerceWebDriverTestBase::setUp()
CartCouponRedemptionElementTest::setUp in modules/promotion/tests/src/FunctionalJavascript/CartCouponRedemptionElementTest.php
CouponRedemptionElementTest::setUp in modules/promotion/tests/src/FunctionalJavascript/CouponRedemptionElementTest.php
CouponRedemptionPaneTest::setUp in modules/promotion/tests/src/FunctionalJavascript/CouponRedemptionPaneTest.php
OffsiteOrderDataTest::setUp in modules/payment/tests/src/FunctionalJavascript/OffsiteOrderDataTest.php
OrderWebDriverTestBase::setUp in modules/order/tests/src/FunctionalJavascript/OrderWebDriverTestBase.php

... See full list

11 methods override CommerceWebDriverTestBase::setUp()
CartCouponRedemptionElementTest::setUp in modules/promotion/tests/src/FunctionalJavascript/CartCouponRedemptionElementTest.php
CouponRedemptionElementTest::setUp in modules/promotion/tests/src/FunctionalJavascript/CouponRedemptionElementTest.php
CouponRedemptionPaneTest::setUp in modules/promotion/tests/src/FunctionalJavascript/CouponRedemptionPaneTest.php
OffsiteOrderDataTest::setUp in modules/payment/tests/src/FunctionalJavascript/OffsiteOrderDataTest.php
OrderWebDriverTestBase::setUp in modules/order/tests/src/FunctionalJavascript/OrderWebDriverTestBase.php

... See full list

File

tests/src/FunctionalJavascript/CommerceWebDriverTestBase.php, line 70

Class

CommerceWebDriverTestBase
Provides a base class for Commerce functional tests.

Namespace

Drupal\Tests\commerce\FunctionalJavascript

Code

protected function setUp() : void {
  $this
    ->setErrorHandler();
  parent::setUp();
  $factory = PhpUnitComparatorFactory::getInstance();
  $factory
    ->register(new NumberComparator());
  $factory
    ->register(new PriceComparator());
  $this->store = $this
    ->createStore();
  $this
    ->placeBlock('local_tasks_block');
  $this
    ->placeBlock('local_actions_block');
  $this
    ->placeBlock('page_title_block');
  $country_repository = $this->container
    ->get('address.country_repository');
  $this->countryList = $country_repository
    ->getList();
  $this->adminUser = $this
    ->drupalCreateUser($this
    ->getAdministratorPermissions());
  $this
    ->drupalLogin($this->adminUser);
}