You are here

protected function CommerceBrowserTestBase::setUp in Commerce Core 8.2

Overrides BrowserTestBase::setUp

9 calls to CommerceBrowserTestBase::setUp()
CheckoutOrderTest::setUp in modules/checkout/tests/src/Functional/CheckoutOrderTest.php
CouponTest::setUp in modules/promotion/tests/src/Functional/CouponTest.php
DefaultPaymentAdminTest::setUp in modules/payment/tests/src/Functional/DefaultPaymentAdminTest.php
EntitySelectWidgetTest::setUp in tests/src/Functional/EntitySelectWidgetTest.php
ManualPaymentAdminTest::setUp in modules/payment/tests/src/Functional/ManualPaymentAdminTest.php

... See full list

9 methods override CommerceBrowserTestBase::setUp()
CheckoutOrderTest::setUp in modules/checkout/tests/src/Functional/CheckoutOrderTest.php
CouponTest::setUp in modules/promotion/tests/src/Functional/CouponTest.php
DefaultPaymentAdminTest::setUp in modules/payment/tests/src/Functional/DefaultPaymentAdminTest.php
EntitySelectWidgetTest::setUp in tests/src/Functional/EntitySelectWidgetTest.php
ManualPaymentAdminTest::setUp in modules/payment/tests/src/Functional/ManualPaymentAdminTest.php

... See full list

File

tests/src/Functional/CommerceBrowserTestBase.php, line 63

Class

CommerceBrowserTestBase
Provides a base class for Commerce functional tests.

Namespace

Drupal\Tests\commerce\Functional

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');
  $this->adminUser = $this
    ->drupalCreateUser($this
    ->getAdministratorPermissions());
  $this
    ->drupalLogin($this->adminUser);
}