function LanguageTest::setUp

Same name in other branches
  1. 9 core/modules/ckeditor5/tests/src/Kernel/LanguageTest.php \Drupal\Tests\ckeditor5\Kernel\LanguageTest::setUp()
  2. 9 core/modules/ckeditor/tests/src/Unit/Plugin/CKEditorPlugin/LanguageTest.php \Drupal\Tests\ckeditor\Unit\Plugin\CKEditorPlugin\LanguageTest::setUp()
  3. 8.9.x core/modules/ckeditor/tests/src/Unit/Plugin/CKEditorPlugin/LanguageTest.php \Drupal\Tests\ckeditor\Unit\Plugin\CKEditorPlugin\LanguageTest::setUp()
  4. 10 core/modules/ckeditor5/tests/src/Kernel/LanguageTest.php \Drupal\Tests\ckeditor5\Kernel\LanguageTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/ckeditor5/tests/src/Kernel/LanguageTest.php, line 45

Class

LanguageTest
Tests language resolving for CKEditor 5.

Namespace

Drupal\Tests\ckeditor5\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->ckeditor5 = $this->container
        ->get('plugin.manager.editor')
        ->createInstance('ckeditor5');
    FilterFormat::create(Yaml::parseFile('core/profiles/standard/config/install/filter.format.basic_html.yml'))->save();
    Editor::create([
        'format' => 'basic_html',
        'editor' => 'ckeditor5',
        'image_upload' => [
            'status' => FALSE,
        ],
    ])->save();
    $this->installConfig([
        'language',
    ]);
}

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