1 ckeditor_rtl.test public CKEditorRtlTestCase::setUp()

Set up environment.

Overrides BackdropWebTestCase::setUp

File

core/modules/ckeditor/tests/ckeditor_rtl.test, line 27
Tests for ckeditor.module.

Class

CKEditorRtlTestCase
CKEditor 4 testing class specific for right-to-left languages.

Code

public function setUp() {
  parent::setUp('ckeditor', '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);
}