protected function MenuUiContentModerationTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php \Drupal\Tests\menu_ui\Functional\MenuUiContentModerationTest::setUp()
- 9 core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php \Drupal\Tests\menu_ui\Functional\MenuUiContentModerationTest::setUp()
File
- core/
modules/ menu_ui/ tests/ src/ Functional/ MenuUiContentModerationTest.php, line 38
Class
- MenuUiContentModerationTest
- Tests Menu UI and Content Moderation integration.
Namespace
Drupal\Tests\menu_ui\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this
->drupalPlaceBlock('system_menu_block:main');
// Create a 'page' content type.
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
'display_submitted' => FALSE,
]);
$workflow = $this
->createEditorialWorkflow();
$workflow
->getTypePlugin()
->addEntityTypeAndBundle('node', 'page');
$workflow
->save();
}