eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase::testLoadContentTypeGroups PHP Метод

testLoadContentTypeGroups() публичный Метод

Test for the loadContentTypeGroups() method.
public testLoadContentTypeGroups ( ) : array
Результат 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