function AdminTest::testRegressionMissingElementsCss

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

See also

default_admin.info.yml

File

core/tests/Drupal/FunctionalTests/Theme/AdminTest.php, line 37

Class

AdminTest
Tests the Admin theme.

Namespace

Drupal\FunctionalTests\Theme

Code

public function testRegressionMissingElementsCss() : void {
  $this->drupalGet('');
  $this->assertSession()
    ->statusCodeEquals(200);
  // This can be any CSS file from the global library.
  $this->assertSession()
    ->responseContains('default_admin/css/base/elements.css');
}

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