function JSTranslationTest::setUp

Same name in other branches
  1. 9 core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php \Drupal\Tests\ckeditor5\FunctionalJavascript\JSTranslationTest::setUp()
  2. 10 core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php \Drupal\Tests\ckeditor5\FunctionalJavascript\JSTranslationTest::setUp()

Overrides CKEditor5TestBase::setUp

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php, line 32

Class

JSTranslationTest
Tests for CKEditor 5 plugins using Drupal's translation system.

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    // Create a sample media entity to be embedded.
    $this->createMediaType('image', [
        'id' => 'image',
        'label' => 'Image',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.