function ClaroTest::testRegressionMissingElementsCss

Same name in other branches
  1. 8.9.x core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testRegressionMissingElementsCss()
  2. 10 core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php \Drupal\FunctionalTests\Theme\ClaroTest::testRegressionMissingElementsCss()
  3. 11.x 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');
}

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