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); }