1 ckeditor_rtl.test public CKEditorRtlTestCase::setUp()

Set up environment.

Overrides BackdropWebTestCase::setUp

File

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

Class

CKEditorRtlTestCase
CKEditor 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->admin_user = $this->backdropCreateUser(array(
    'administer filters',
    'access administration pages',
    'access content',
    'administer nodes',
  ));
  $this->backdropLogin($this->admin_user);
}