You are here

public function ClaroTest::testRegressionMissingElementsCss in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testRegressionMissingElementsCss()
  2. 9 core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testRegressionMissingElementsCss()

Testing that Claro theme's global library is always attached.

See also

claro.info.yml

File

core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php, line 35

Class

ClaroTest
Tests the Claro theme.

Namespace

Drupal\FunctionalTests\Theme

Code

public function testRegressionMissingElementsCss() {
  $this
    ->drupalGet('');
  $this
    ->assertSession()
    ->statusCodeEquals(200);

  // This can be any CSS file from the global library.
  $this
    ->assertSession()
    ->responseContains('claro/css/base/elements.css');
}