eZ\Publish\Core\REST\Server\Tests\Input\Parser\URLWildcardCreateTest::testParse PHP Method

testParse() public method

Tests the URLWildcardCreate parser.
public testParse ( )
    public function testParse()
    {
        $inputArray = array('sourceUrl' => '/source/url', 'destinationUrl' => '/destination/url', 'forward' => 'true');
        $urlWildcardCreate = $this->getParser();
        $result = $urlWildcardCreate->parse($inputArray, $this->getParsingDispatcherMock());
        $this->assertEquals(array('sourceUrl' => '/source/url', 'destinationUrl' => '/destination/url', 'forward' => true), $result, 'URLWildcardCreate not parsed correctly.');
    }