function BartikTest::testRegressionMissingMessagesCss

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

Tests that the Bartik theme always adds its message CSS files.

See also

bartik.libraries.yml

classy.info.yml

File

core/tests/Drupal/FunctionalTests/Theme/BartikTest.php, line 25

Class

BartikTest
Tests the Bartik theme.

Namespace

Drupal\FunctionalTests\Theme

Code

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

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