You are here

protected function CartBrowserTestBase::setUp in Commerce Core 8.2

Overrides OrderBrowserTestBase::setUp

3 calls to CartBrowserTestBase::setUp()
CartBlockTest::setUp in modules/cart/tests/src/Functional/CartBlockTest.php
CartEntityAccessTest::setUp in modules/cart/tests/src/Functional/CartEntityAccessTest.php
MultipleCartMultipleVariationTypesTest::setUp in modules/cart/tests/src/Functional/MultipleCartMultipleVariationTypesTest.php
3 methods override CartBrowserTestBase::setUp()
CartBlockTest::setUp in modules/cart/tests/src/Functional/CartBlockTest.php
CartEntityAccessTest::setUp in modules/cart/tests/src/Functional/CartEntityAccessTest.php
MultipleCartMultipleVariationTypesTest::setUp in modules/cart/tests/src/Functional/MultipleCartMultipleVariationTypesTest.php

File

modules/cart/tests/src/Functional/CartBrowserTestBase.php, line 56

Class

CartBrowserTestBase
Defines base class for commerce_cart test cases.

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->cartManager = $this->container
    ->get('commerce_cart.cart_manager');
  $this->attributeFieldManager = $this->container
    ->get('commerce_product.attribute_field_manager');
}