Drupal 8  8.0.2
CKEditorTest Class Reference
Inheritance diagram for CKEditorTest:

Public Member Functions

 testGetJSSettings ()
 
 testBuildToolbarJSSetting ()
 
 testBuildContentsCssJSSetting ()
 
 testInternalGetConfig ()
 
 testStylesComboGetConfig ()
 
 testLanguages ()
 
 testJSTranslation ()
 

Static Public Attributes

static $modules = array('system', 'user', 'filter', 'editor', 'ckeditor', 'filter_test')
 

Protected Member Functions

 setUp ()
 
 assertCKEditorLanguage ($langcode= 'fr')
 
 getDefaultInternalConfig ()
 
 getDefaultAllowedContentConfig ()
 
 getDefaultDisallowedContentConfig ()
 
 getDefaultToolbarConfig ()
 
 getDefaultContentsCssConfig ()
 

Protected Attributes

 $ckeditor
 
 $manager
 

Detailed Description

Tests for the 'CKEditor' text editor plugin.

ckeditor

Member Function Documentation

assertCKEditorLanguage (   $langcode = 'fr')
protected

Assert that CKEditor picks the expected language when French is default.

Parameters
string$langcodeLanguage code to assert for. Defaults to French. That is the default language set in this assertion.

References Drupal\config(), ConfigurableLanguage\createFromLangcode(), and Entity\load().

Referenced by CKEditorTest\testJSTranslation(), and CKEditorTest\testLanguages().

Here is the call graph for this function:

Here is the caller graph for this function:

testBuildContentsCssJSSetting ( )

Tests CKEditor::buildContentsCssJSSetting().

References Drupal\config(), file_create_url(), and Drupal\service().

Here is the call graph for this function:

testBuildToolbarJSSetting ( )

Tests CKEditor::buildToolbarJSSetting().

testGetJSSettings ( )

Tests CKEditor::getJSSettings().

References file_create_url().

Here is the call graph for this function:

testInternalGetConfig ( )

Tests Internal::getConfig().

testJSTranslation ( )

Tests that CKEditor plugins participate in JS translation.

References CKEditorTest\assertCKEditorLanguage(), and Entity\load().

Here is the call graph for this function:

testLanguages ( )

Tests language list availability in CKEditor.

References CKEditorTest\assertCKEditorLanguage().

Here is the call graph for this function:

testStylesComboGetConfig ( )

Tests StylesCombo::getConfig().


The documentation for this class was generated from the following file: