/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->credentials = 'bar'; $this->firewall = 'qux'; $this->roles = array('waldo'); $this->user = '******'; $this->session = $this->getSessionMock(array('save', 'set')); $this->container = $this->getContainerMock(array('get')); $this->container->method('get')->with('session')->willReturn($this->session); $this->tokenStorage = $this->getTokenStorageMock(array()); $this->client = $this->getClientMock(array()); $this->client->method('getContainer')->willReturn($this->container); $this->client->method('getCookieJar')->willReturn($this->getCookieJarMock()); }
/** * {@inheritdoc} */ protected function tearDown() { self::$kernel->shutdown(); parent::tearDown(); }