You are here

protected function CookieTestTrait::setupBrowserContainer in Bakery Single Sign-On System 8.2

2 calls to CookieTestTrait::setupBrowserContainer()
ChocolateChipTest::setUp in tests/src/Unit/Cookies/ChocolateChipTest.php
OatmealCookieTest::setUp in tests/src/Unit/Cookies/OatmealCookieTest.php

File

tests/src/Traits/CookieTestTrait.php, line 61

Class

CookieTestTrait

Namespace

Drupal\Tests\bakery\Traits

Code

protected function setupBrowserContainer() {
  $container = new Container();
  $this->kitchenService = $this
    ->prophesize(Kitchen::class);
  $this->bakeryService = $this
    ->prophesize(BakeryService::class);
  $this->kitchenService
    ->cookieName(Argument::any())
    ->willReturn($this->cookieName);
  $container
    ->set('bakery.kitchen', $this->kitchenService
    ->reveal());
  $container
    ->set('bakery.bakery_service', $this->bakeryService
    ->reveal());
  \Drupal::setContainer($container);
}