Contao\CoreBundle\Test\EventListener\ToggleViewListenerTest::assertCookieValue PHP Method

assertCookieValue() private method

Checks if a cookie exists and has the correct value.
private assertCookieValue ( Response $response, string $expectedValue )
$response Symfony\Component\HttpFoundation\Response
$expectedValue string
    private function assertCookieValue(Response $response, $expectedValue)
    {
        $cookie = $this->getCookie($response);
        $this->assertNotNull($cookie);
        $this->assertEquals($expectedValue, $cookie->getValue());
    }