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

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

Test for the assignContentTypeGroup() method.
    public function testAssignContentTypeGroupThrowsUnauthorizedException()
    {
        $contentTypeService = $this->repository->getContentTypeService();
        $mediaGroup = $contentTypeService->loadContentTypeGroupByIdentifier('Media');
        $folderType = $contentTypeService->loadContentTypeByIdentifier('folder');
        // Set anonymous as current user
        $this->repository->setCurrentUser($this->getStubbedUser(10));
        $contentTypeService->assignContentTypeGroup($folderType, $mediaGroup);
    }
ContentTypeBase