public function BartikTest::testRegressionMissingMessagesCss in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Theme/BartikTest.php \Drupal\FunctionalTests\Theme\BartikTest::testRegressionMissingMessagesCss()
Tests that the Bartik theme always adds its message CSS files.
See also
File
- core/
tests/ Drupal/ FunctionalTests/ Theme/ BartikTest.php, line 25
Class
- BartikTest
- Tests the Bartik theme.
Namespace
Drupal\FunctionalTests\ThemeCode
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');
}