@@ 470-483 (lines=14) @@ | ||
467 | * @see \eZ\Publish\API\Repository\ContentTypeService::updateContentTypeGroup() |
|
468 | * @depends eZ\Publish\API\Repository\Tests\ContentTypeServiceTest::testUpdateContentTypeGroup |
|
469 | */ |
|
470 | public function testUpdateContentTypeGroupStructValues(array $data) |
|
471 | { |
|
472 | $expectedValues = [ |
|
473 | 'identifier' => $data['updateStruct']->identifier, |
|
474 | 'creationDate' => $data['originalGroup']->creationDate, |
|
475 | 'modificationDate' => $data['updateStruct']->modificationDate, |
|
476 | 'creatorId' => $data['originalGroup']->creatorId, |
|
477 | 'modifierId' => $data['updateStruct']->modifierId, |
|
478 | ]; |
|
479 | ||
480 | $this->assertPropertiesCorrect($expectedValues, $data['updatedGroup']); |
|
481 | ||
482 | return $data; |
|
483 | } |
|
484 | ||
485 | /** |
|
486 | * Test for the updateContentTypeGroup() method. |
|
@@ 491-507 (lines=17) @@ | ||
488 | * @see \eZ\Publish\API\Repository\ContentTypeService::updateContentTypeGroup() |
|
489 | * @depends eZ\Publish\API\Repository\Tests\ContentTypeServiceTest::testUpdateContentTypeGroupStructValues |
|
490 | */ |
|
491 | public function testUpdateContentTypeGroupStructLanguageDependentValues(array $data) |
|
492 | { |
|
493 | $expectedValues = [ |
|
494 | 'identifier' => $data['updateStruct']->identifier, |
|
495 | 'creationDate' => $data['originalGroup']->creationDate, |
|
496 | 'modificationDate' => $data['updateStruct']->modificationDate, |
|
497 | 'creatorId' => $data['originalGroup']->creatorId, |
|
498 | 'modifierId' => $data['updateStruct']->modifierId, |
|
499 | /* @todo uncomment when support for multilingual names and descriptions is added |
|
500 | 'mainLanguageCode' => $data['updateStruct']->mainLanguageCode, |
|
501 | 'names' => $data['updateStruct']->names, |
|
502 | 'descriptions' => $data['updateStruct']->descriptions, |
|
503 | */ |
|
504 | ]; |
|
505 | ||
506 | $this->assertPropertiesCorrect($expectedValues, $data['updatedGroup']); |
|
507 | } |
|
508 | ||
509 | /** |
|
510 | * Test for the updateContentTypeGroup() method. |