eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase::testCreateContentTypeDraftValues PHP Method

testCreateContentTypeDraftValues() public method

Test for the createContentTypeDraft() method.
    public function testCreateContentTypeDraftValues(array $data)
    {
        /** @var $publishedType \eZ\Publish\Core\Repository\Values\ContentType\ContentType */
        $publishedType = $data['expected'];
        /** @var $draftType \eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft */
        $draftType = $data['actual'];
        $typeProperties = array('skip' => array('id', 'status', 'modificationDate'));
        $this->compareContentTypes($data, $typeProperties);
        $this->assertEquals($publishedType->id, $draftType->id);
        $this->assertEquals($draftType->status, ContentType::STATUS_DRAFT);
    }
ContentTypeBase