Bolt\Tests\Response\TemplateResponseTest::testGlobalContext PHP Метод

testGlobalContext() публичный Метод

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