eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase::testLoadContentTypeGroups PHP Méthode

testLoadContentTypeGroups() public méthode

Test for the loadContentTypeGroups() method.
public testLoadContentTypeGroups ( ) : array
Résultat array
    public function testLoadContentTypeGroups()
    {
        /* BEGIN: Use Case */
        $contentTypeService = $this->repository->getContentTypeService();
        $loadedGroups = $contentTypeService->loadContentTypeGroups();
        /* END: Use Case */
        $this->assertInternalType('array', $loadedGroups);
        foreach ($loadedGroups as $loadedGroup) {
            $this->assertContentTypeGroupsEqual(array('expected' => $contentTypeService->loadContentTypeGroup($loadedGroup->id), 'actual' => $loadedGroup));
        }
        return $loadedGroups;
    }
ContentTypeBase