1 ckeditor5_rtl.test public CKEditor5RtlTestCase::setUp()

Set up environment.

Overrides BackdropWebTestCase::setUp

File

core/modules/ckeditor5/tests/ckeditor5_rtl.test, line 28
Tests for ckeditor.module.

Class

CKEditor5RtlTestCase
CKEditor testing class specific for right-to-left languages.

Code

public function setUp() {
  parent::setUp(array('ckeditor5', 'language', 'locale'));
  // Add RTL language.
  $arabic = (object) array(
    'langcode' => 'ar',
    'name' => 'Arabic',
    'direction' => LANGUAGE_RTL,
  );
  language_save($arabic);

  // Switch on error display.
  config_set('system.core', 'error_level', 'all');

  // Create and log in as the admin user.
  $this->adminUser = $this->backdropCreateUser(array(
    'administer filters',
    'access administration pages',
    'access content',
    'administer nodes',
  ));
  $this->backdropLogin($this->adminUser);
}