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

testParse() public method

Tests the section parser.
public testParse ( ) : eZ\Publish\API\Repository\Values\Content\Content
return eZ\Publish\API\Repository\Values\Content\Content
    public function testParse()
    {
        $contentTypeParser = $this->getParser();
        $inputArray = array('_media-type' => 'application/vnd.ez.api.ContentType+json', '_href' => '/content/types/1', 'id' => 1, 'status' => 'DEFINED', 'identifier' => 'folder', 'names' => array('value' => array(1 => array('_languageCode' => 'eng-US', '#text' => 'Folder'))), 'descriptions' => array('value' => array(1 => array('_languageCode' => 'eng-US', '#text' => 'Bielefeld'))), 'creationDate' => '2002-06-18T11:21:38+02:00', 'modificationDate' => '2004-04-20T11:54:35+02:00', 'Creator' => array('_media-type' => 'application/vnd.ez.api.User+json', '_href' => '/user/users/10'), 'Modifier' => array('_media-type' => 'application/vnd.ez.api.User+json', '_href' => '/user/users/14'), 'remoteId' => 'a3d405b81be900468eb153d774f4f0d2', 'urlAliasSchema' => '', 'nameSchema' => '<short_name|name>', 'isContainer' => 'true', 'mainLanguageCode' => 'eng-US', 'defaultAlwaysAvailable' => 'true', 'defaultSortField' => 'PATH', 'defaultSortOrder' => 'ASC', 'FieldDefinitions' => array('_media-type' => 'application/vnd.ez.api.FieldDefinitionList+json', '_href' => '/content/types/1/fieldDefinitions', 'FieldDefinition' => array()));
        $result = $contentTypeParser->parse($inputArray, $this->getParsingDispatcherMock());
        $this->assertNotNull($result);
        return $result;
    }