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

testParse() public method

Tests the SectionInput parser.
public testParse ( )
    public function testParse()
    {
        $inputArray = array('name' => 'Name Foo', 'identifier' => 'Identifier Bar');
        $sectionInput = $this->getParser();
        $result = $sectionInput->parse($inputArray, $this->getParsingDispatcherMock());
        $this->assertEquals(new SectionCreateStruct($inputArray), $result, 'SectionCreateStruct not created correctly.');
    }