function CKEditorStylesheetsWarningTest::providerTestWarningFilterUi

Same name in other branches
  1. 9 core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditorStylesheetsWarningTest.php \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditorStylesheetsWarningTest::providerTestWarningFilterUi()
  2. 11.x core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditorStylesheetsWarningTest.php \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditorStylesheetsWarningTest::providerTestWarningFilterUi()

Data provider for testWarningFilterUI().

Return value

string[][] An array with the theme to enable and the warning message to check.

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditorStylesheetsWarningTest.php, line 62

Class

CKEditorStylesheetsWarningTest
Tests warnings when ckeditor_stylesheets do not have CKEditor 5 equivalents.

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

public function providerTestWarningFilterUi() {
    return [
        'single theme' => [
            'theme' => 'test_ckeditor_stylesheets_without_5',
            'expected_warning' => 'The No setting for CKEditor 5 stylesheets theme has ckeditor_stylesheets configured without a corresponding ckeditor5-stylesheets configuration. See the change record for details.',
        ],
        'with base theme' => [
            'theme' => 'test_subtheming_ckeditor_stylesheets_without_5',
            'expected_warning' => 'The No setting for CKEditor 5 stylesheets here or subtheme and No setting for CKEditor 5 stylesheets themes have ckeditor_stylesheets configured, but without corresponding ckeditor5-stylesheets configurations. See the change record for details.',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.