function CKEditorStylesheetsWarningTest::testWarningFilterUi

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

Test the ckeditor_stylesheets warning in the filter UI.

@dataProvider providerTestWarningFilterUI

File

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

Class

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

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

public function testWarningFilterUi($theme, $expected_warning) {
    $page = $this->getSession()
        ->getPage();
    $assert_session = $this->assertSession();
    $this->addNewTextFormat($page, $assert_session);
    $this->drupalGet('admin/config/content/formats/manage/ckeditor5');
    $assert_session->pageTextNotContains($expected_warning);
    $this->installThemeThatTriggersWarning($theme);
    $this->drupalGet('admin/config/content/formats/manage/ckeditor5');
    $this->assertTrue($assert_session->waitForText($expected_warning));
}

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