Bolt\Tests\Response\TemplateResponseTest::testGlobalContext PHP Method

testGlobalContext() public method

public testGlobalContext ( )
    public function testGlobalContext()
    {
        $response = $this->createTestResponse('error.twig', [], $this->getContext());
        $globalContext = $response->getGlobals();
        $this->assertEquals('1555', $globalContext['context']['code']);
    }