public testPublishVersionThrowsBadStateException ( ) |
public function testPublishVersionThrowsBadStateException()
{
/* BEGIN: Use Case */
$contentService = $this->repository->getContentService();
$versionInfo = $contentService->loadVersionInfoById(4);
// Throws an exception because version is already published
$publishedContent = $contentService->publishVersion($versionInfo);
/* END: Use Case */
}