eZ\Publish\Core\Repository\Tests\Service\Integration\ContentBase::assertCreateContentStructValuesContentInfo PHP Метод

assertCreateContentStructValuesContentInfo() защищенный Метод

Asserts that ContentInfo is valid after Content creation.
    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);
    }
ContentBase