eZ\Bundle\EzPublishRestBundle\Features\Context\SubContext\Exception::assertForbiddenExceptionWithMessage PHP Метод

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

    public function assertForbiddenExceptionWithMessage($message)
    {
        $this->assertStatusCode(403);
        $this->assertStatusMessage('Forbidden');
        $this->assertHeaderHasObject('content-type', 'ErrorMessage');
        $this->assertResponseObject('eZ\\Publish\\Core\\REST\\Common\\Exceptions\\ForbiddenException');
        $this->assertResponseErrorStatusCode(403);
        $this->assertResponseErrorDescription("/^{$message}\$/");
    }