You are here

protected function EmptyCartButtonTest::setUp in Commerce Core 8.2

Overrides OrderBrowserTestBase::setUp

File

modules/cart/tests/src/Functional/EmptyCartButtonTest.php, line 40

Class

EmptyCartButtonTest
Tests the cart page with the empty cart button enabled.

Namespace

Drupal\Tests\commerce_cart\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->cart = $this->container
    ->get('commerce_cart.cart_provider')
    ->createCart('default', $this->store);
  $this->cartManager = $this->container
    ->get('commerce_cart.cart_manager');
}