protected function DefaultModerationStateTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php \Drupal\Tests\content_moderation\Functional\DefaultModerationStateTest::setUp()
- 9 core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php \Drupal\Tests\content_moderation\Functional\DefaultModerationStateTest::setUp()
File
- core/
modules/ content_moderation/ tests/ src/ Functional/ DefaultModerationStateTest.php, line 20
Class
- DefaultModerationStateTest
- Tests setting a custom default moderation state.
Namespace
Drupal\Tests\content_moderation\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this
->drupalLogin($this->adminUser);
$this
->createContentTypeFromUi('Moderated content', 'moderated_content', TRUE);
$this
->grantUserPermissionToCreateContentOfType($this->adminUser, 'moderated_content');
}