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(); }