eZ\Publish\Core\Repository\Tests\Service\Integration\ContentBase::testLoadContentDraftsThrowsUnauthorizedException PHP Метод

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

Test for the loadContentDrafts() method.
    public function testLoadContentDraftsThrowsUnauthorizedException()
    {
        // Set anonymous as current user
        $this->repository->setCurrentUser($this->getStubbedUser(10));
        // Now $contentDrafts should contain two drafted versions
        $this->repository->getContentService()->loadContentDrafts();
    }
ContentBase