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

testParse() public method

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