ImboUnitTest\EventListener\VarnishHashTwoTest::testCanSendAHashTwoHeader PHP Method

testCanSendAHashTwoHeader() public method

    public function testCanSendAHashTwoHeader()
    {
        $this->request->expects($this->once())->method('getUser')->will($this->returnValue('user'));
        $image = $this->getMock('Imbo\\Model\\Image');
        $image->expects($this->once())->method('getImageIdentifier')->will($this->returnValue('id'));
        $this->response->expects($this->once())->method('getModel')->will($this->returnValue($image));
        $this->responseHeaders->expects($this->once())->method('set')->with('X-HashTwo', ['imbo;image;user;id', 'imbo;user;user']);
        $this->listener->addHeader($this->event);
    }