public function PreviewLinkForwardRevisionTest::setUp in Preview Link 2.x
Same name and namespace in other branches
- 8 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 46
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();
}