function OliveroTest::testBaseLibraryAvailable

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php \Drupal\FunctionalTests\Theme\OliveroTest::testBaseLibraryAvailable()
  2. 10 core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php \Drupal\FunctionalTests\Theme\OliveroTest::testBaseLibraryAvailable()

Tests that the Olivero theme always adds base library files.

See also

olivero.libraries.yml

File

core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php, line 41

Class

OliveroTest
Tests the Olivero theme.

Namespace

Drupal\FunctionalTests\Theme

Code

public function testBaseLibraryAvailable() : void {
    $this->drupalGet('');
    $this->assertSession()
        ->statusCodeEquals(200);
    $this->assertSession()
        ->responseContains('olivero/css/base/base.css');
    $this->assertSession()
        ->responseContains('olivero/js/navigation-utils.js');
}

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