function ModerationStateTestBase::setUp
Same name in other branches
- 8.9.x core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php \Drupal\Tests\content_moderation\Functional\ModerationStateTestBase::setUp()
- 10 core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php \Drupal\Tests\content_moderation\Functional\ModerationStateTestBase::setUp()
- 11.x core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php \Drupal\Tests\content_moderation\Functional\ModerationStateTestBase::setUp()
Sets the test up.
Overrides BrowserTestBase::setUp
7 calls to ModerationStateTestBase::setUp()
- DefaultModerationStateTest::setUp in core/
modules/ content_moderation/ tests/ src/ Functional/ DefaultModerationStateTest.php - Sets the test up.
- ModerationFormTest::setUp in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationFormTest.php - Sets the test up.
- ModerationLocaleTest::setUp in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationLocaleTest.php - Sets the test up.
- ModerationStateBlockTest::setUp in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationStateBlockTest.php - Sets the test up.
- ModerationStateNodeTest::setUp in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationStateNodeTest.php - Sets the test up.
7 methods override ModerationStateTestBase::setUp()
- DefaultModerationStateTest::setUp in core/
modules/ content_moderation/ tests/ src/ Functional/ DefaultModerationStateTest.php - Sets the test up.
- ModerationFormTest::setUp in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationFormTest.php - Sets the test up.
- ModerationLocaleTest::setUp in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationLocaleTest.php - Sets the test up.
- ModerationStateBlockTest::setUp in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationStateBlockTest.php - Sets the test up.
- ModerationStateNodeTest::setUp in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationStateNodeTest.php - Sets the test up.
File
-
core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationStateTestBase.php, line 75
Class
- ModerationStateTestBase
- Defines a base class for moderation state tests.
Namespace
Drupal\Tests\content_moderation\FunctionalCode
protected function setUp() {
parent::setUp();
$this->workflow = $this->createEditorialWorkflow();
$this->adminUser = $this->drupalCreateUser($this->permissions);
$this->drupalPlaceBlock('local_tasks_block', [
'id' => 'tabs_block',
]);
$this->drupalPlaceBlock('page_title_block');
$this->drupalPlaceBlock('local_actions_block', [
'id' => 'actions_block',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.