function ClassyTest::testRegressionMissingMessagesCss

Same name in other branches
  1. 9 core/themes/classy/tests/src/Functional/ClassyTest.php \Drupal\Tests\classy\Functional\ClassyTest::testRegressionMissingMessagesCss()

Tests that the Classy theme always adds its message CSS.

See also

classy.info.yml

File

core/tests/Drupal/FunctionalTests/Theme/ClassyTest.php, line 24

Class

ClassyTest
Tests the classy theme.

Namespace

Drupal\FunctionalTests\Theme

Code

public function testRegressionMissingMessagesCss() {
    $this->drupalGet('');
    $this->assertSession()
        ->statusCodeEquals(200);
    $this->assertSession()
        ->responseContains('classy/css/components/messages.css');
}

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