You are here

protected function LanguageTest::setUp in Drupal 10

Same name in this branch
  1. 10 core/modules/ckeditor5/tests/src/Kernel/LanguageTest.php \Drupal\Tests\ckeditor5\Kernel\LanguageTest::setUp()
  2. 10 core/modules/ckeditor/tests/src/Unit/Plugin/CKEditorPlugin/LanguageTest.php \Drupal\Tests\ckeditor\Unit\Plugin\CKEditorPlugin\LanguageTest::setUp()

File

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

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',
  ])
    ->save();
  $this
    ->installConfig([
    'language',
  ]);
}