protected function assertCreateContentStructValuesContentInfo(array $data) { /** @var $contentDraft \eZ\Publish\API\Repository\Values\Content\Content */ $contentDraft = $data['actual']; /** @var $contentCreate \eZ\Publish\API\Repository\Values\Content\ContentCreateStruct */ $contentCreate = $data['expected']; $this->assertPropertiesCorrect(array('id' => $contentDraft->id, 'name' => $contentCreate->fields[0]->value, 'sectionId' => $contentCreate->sectionId, 'currentVersionNo' => 1, 'published' => false, 'ownerId' => $contentCreate->ownerId, 'modificationDate' => null, 'publishedDate' => null, 'alwaysAvailable' => $contentCreate->alwaysAvailable, 'remoteId' => $contentCreate->remoteId, 'mainLanguageCode' => $contentCreate->mainLanguageCode), $contentDraft->versionInfo->contentInfo); $this->assertNotNull($contentDraft->id); $this->assertEquals($contentCreate->contentType->id, $contentDraft->versionInfo->contentInfo->contentTypeId); }