public function PreviewLinkForwardRevisionTest::setUp in Preview Link 8
Same name and namespace in other branches
- 2.x tests/src/Functional/PreviewLinkForwardRevisionTest.php \Drupal\Tests\preview_link\Functional\PreviewLinkForwardRevisionTest::setUp()
- 2.0.x tests/src/Functional/PreviewLinkForwardRevisionTest.php \Drupal\Tests\preview_link\Functional\PreviewLinkForwardRevisionTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ PreviewLinkForwardRevisionTest.php, line 44
Class
- PreviewLinkForwardRevisionTest
- Test forward revisions are loaded.
Namespace
Drupal\Tests\preview_link\FunctionalCode
public function setUp() {
parent::setUp();
$this
->createEditorialWorkflow();
$this
->createContentType([
'type' => 'page',
]);
$workflow = Workflow::load('editorial');
$workflow
->getTypePlugin()
->addEntityTypeAndBundle('node', 'page');
$workflow
->save();
}