public function testUpdateContentThrowsUnauthorizedException() { list($content, $contentType) = $this->createTestContent(); $contentUpdateStruct = $this->repository->getContentService()->newContentUpdateStruct(); $contentUpdateStruct->initialLanguageCode = 'eng-US'; $contentUpdateStruct->setField('test_required_empty', 'new value for test_required_empty'); // Set anonymous as current user $this->repository->setCurrentUser($this->getStubbedUser(10)); $this->repository->getContentService()->updateContent($content->versionInfo, $contentUpdateStruct); }