You are here

public function BartikTest::testRegressionMissingMessagesCss in Drupal 10

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

See also

bartik.libraries.yml

classy.info.yml

File

core/themes/bartik/tests/src/Functional/BartikTest.php, line 26

Class

BartikTest
Tests the Bartik theme.

Namespace

Drupal\Tests\bartik\Functional

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