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

assertCopyContentTypeValues() protected method

Asserts that copied content type is valid copy of original content type.
protected assertCopyContentTypeValues ( array $data )
$data array
    protected function assertCopyContentTypeValues(array $data)
    {
        /** @var $originalType \eZ\Publish\Core\Repository\Values\ContentType\ContentType */
        $originalType = $data['originalType'];
        /** @var $copiedType \eZ\Publish\Core\Repository\Values\ContentType\ContentType */
        $copiedType = $data['copiedType'];
        $userId = $data['userId'];
        $time = $data['time'];
        $this->compareContentTypes(array('expected' => $originalType, 'actual' => $copiedType), array('notEqual' => array('id', 'identifier', 'creationDate', 'modificationDate', 'remoteId'), 'skip' => array('creatorId', 'modifierId', 'status')), array('notEqual' => array('id')));
        $this->assertGreaterThanOrEqual($time, $copiedType->creationDate->getTimestamp());
        $this->assertGreaterThanOrEqual($time, $copiedType->modificationDate->getTimestamp());
        $this->assertEquals($userId, $copiedType->creatorId);
        $this->assertEquals($userId, $copiedType->modifierId);
        $this->assertEquals(ContentType::STATUS_DEFINED, $copiedType->status);
    }
ContentTypeBase