Same name in other branches
- 8.x-1.x tests/src/Functional/EntityCloneContentTest.php \Drupal\Tests\entity_clone\Functional\EntityCloneContentTest::setUp()
Sets the test up.
Fichier
-
tests/
src/ Functional/ EntityCloneContentTest.php, line 64
Classe
- EntityCloneContentTest
- Create a content and test a clone.
Namespace
Drupal\Tests\entity_clone\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this->drupalCreateUser($this->permissions);
$this->drupalLogin($this->adminUser);
ConfigurableLanguage::createFromLangcode('fr')->save();
\Drupal::service('content_translation.manager')->setEnabled('node', 'page', TRUE);
}