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

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

Test for the deleteContentTypeGroup() method.
    public function testDeleteContentTypeGroupThrowsUnauthorizedException()
    {
        $this->createContentTypeGroup();
        /* BEGIN: Use Case */
        $contentTypeService = $this->repository->getContentTypeService();
        $group = $contentTypeService->loadContentTypeGroupByIdentifier('new-group');
        // Set anonymous as current user
        $this->repository->setCurrentUser($this->getStubbedUser(10));
        $contentTypeService->deleteContentTypeGroup($group);
    }
ContentTypeBase