public function testLoadContentByRemoteIdWithVersionThrowsUnauthorizedException() { $contentService = $this->repository->getContentService(); $content = $contentService->loadContent(4); $draft = $contentService->createContentDraft($content->contentInfo); $this->repository->setCurrentUser($this->getStubbedUser(10)); $contentService->loadContentByRemoteId($draft->contentInfo->remoteId, null, $draft->versionInfo->versionNo); }