Same name in other branches
- 8.x-1.x tests/src/Functional/EntityCloneContentModerationTest.php \Drupal\Tests\entity_clone\Functional\EntityCloneContentModerationTest::setUp()
Sets the test up.
File
-
tests/
src/ Functional/ EntityCloneContentModerationTest.php, line 65
Class
- EntityCloneContentModerationTest
- Create a moderated content and test the clone of its moderation state.
Namespace
Drupal\Tests\entity_clone\FunctionalCode
protected function setUp() : void {
parent::setUp();
ConfigurableLanguage::createFromLangcode('fr')->save();
\Drupal::service('content_translation.manager')->setEnabled('node', 'page', TRUE);
$workflow = $this->createEditorialWorkflow();
$this->addEntityTypeAndBundleToWorkflow($workflow, 'node', 'page');
$this->adminUser = $this->drupalCreateUser($this->permissions);
$this->drupalLogin($this->adminUser);
}