eZ\Publish\Core\REST\Client\Tests\Input\Parser\NotFoundExceptionTest::testParse PHP Method

testParse() public method

Tests parsing of NotFoundException.
public testParse ( )
    public function testParse()
    {
        $parser = $this->getParser();
        $inputArray = array('errorDescription' => 'Section with ID "23" not found.', 'errorCode' => '404');
        $exception = $parser->parse($inputArray, $this->getParsingDispatcherMock());
        self::assertInstanceOf('eZ\\Publish\\API\\Repository\\Exceptions\\NotFoundException', $exception);
        self::assertEquals('Section with ID "23" not found.', $exception->getMessage());
    }
NotFoundExceptionTest