You are here

public function BrowserCookieTraitTest::setUp in Bakery Single Sign-On System 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/Cookies/BrowserCookieTraitTest.php, line 26

Class

BrowserCookieTraitTest
@coversDefaultClass \Drupal\bakery\Cookies\BrowserCookieTrait

Namespace

Drupal\Tests\bakery\Unit\Cookies

Code

public function setUp() {
  parent::setUp();
  $container = new Container();
  $this->kitchenService = $this
    ->prophesize(Kitchen::class);
  $this->bakeryService = $this
    ->prophesize(BakeryService::class);
  $container
    ->set('bakery.kitchen', $this->kitchenService
    ->reveal());
  $container
    ->set('bakery.bakery_service', $this->bakeryService
    ->reveal());
  \Drupal::setContainer($container);
}