installThemeThatTriggersWarning example


  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));
  }

  /** * Data provider for testWarningFilterUI(). * * @return string[][] * An array with the theme to enable and the warning message to check. */
  public function providerTestWarningFilterUi() {
    
Home | Imprint | This part of the site doesn't use cookies.