Contao\CoreBundle\Test\Exception\NoContentResponseExceptionTest::testGetResponse PHP Method

testGetResponse() public method

Tests the getResponse() method.
public testGetResponse ( )
    public function testGetResponse()
    {
        $exception = new NoContentResponseException();
        $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $exception->getResponse());
        $this->assertEquals(204, $exception->getResponse()->getStatusCode());
        $this->assertEquals('', $exception->getResponse()->getContent());
    }
NoContentResponseExceptionTest