Same name in other branches
- 2.x tests/src/Functional/EntityCloneContentModerationTest.php \Drupal\Tests\entity_clone\Functional\EntityCloneContentModerationTest::setUp()
Sets the test up.
Fichier
-
tests/
src/ Functional/ EntityCloneContentModerationTest.php, line 65
Classe
- 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);
}