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

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

Test for the publishVersion() method.
    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 */
    }
ContentBase