You are here

protected function RefreshPageElementsHelperTest::setUp in Commerce Ajax Add to Cart 8

Overrides CommerceKernelTestBase::setUp

File

tests/src/Kernel/RefreshPageElementsHelperTest.php, line 104

Class

RefreshPageElementsHelperTest
Tests RefreshPageElementsHelper methods.

Namespace

Drupal\Tests\dc_ajax_add_cart\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->controller = $this->container
    ->get('entity_type.manager')
    ->getStorage('block');
  $this->activeTheme = $this->container
    ->get('theme.manager')
    ->getActiveTheme();
  $this->refreshPageElementsHelper = $this->container
    ->get('dc_ajax_add_cart.refresh_page_elements_helper');
  $this->statusMessagesBlockId = $this
    ->randomMachineName();
}