You are here

protected function ContentTranslationTest::setUp in Entity Embed 8

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/ContentTranslationTest.php, line 31

Class

ContentTranslationTest
Test integration with content_translation.

Namespace

Drupal\Tests\entity_embed\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this->translator = $this
    ->drupalCreateUser([
    'use text format full_html',
    'administer nodes',
    'edit any article content',
    'translate any entity',
  ]);
  $this
    ->config('field.storage.node.body')
    ->set('translatable', TRUE)
    ->save();
}