Code Duplication    Length = 14-14 lines in 2 locations

eZ/Publish/API/Repository/Tests/ContentTypeServiceTest.php 2 locations

@@ 925-938 (lines=14) @@
922
        usort($expectedGroups, $sorter);
923
        usort($actualGroups, $sorter);
924
925
        foreach ($expectedGroups as $key => $expectedGroup) {
926
            $this->assertStructPropertiesCorrect(
927
                $expectedGroup,
928
                $actualGroups[$key],
929
                [
930
                    'id',
931
                    'identifier',
932
                    'creationDate',
933
                    'modificationDate',
934
                    'creatorId',
935
                    'modifierId',
936
                ]
937
            );
938
        }
939
    }
940
941
    /**
@@ 342-355 (lines=14) @@
339
        $this->assertIsArray($loadedGroups
340
        );
341
342
        foreach ($loadedGroups as $loadedGroup) {
343
            $this->assertStructPropertiesCorrect(
344
                $contentTypeService->loadContentTypeGroup($loadedGroup->id),
345
                $loadedGroup,
346
                [
347
                    'id',
348
                    'identifier',
349
                    'creationDate',
350
                    'modificationDate',
351
                    'creatorId',
352
                    'modifierId',
353
                ]
354
            );
355
        }
356
357
        return $loadedGroups;
358
    }