You are here

BartikTest.php in Drupal 10

File

core/themes/bartik/tests/src/Functional/BartikTest.php
View source
<?php

namespace Drupal\Tests\bartik\Functional;

use Drupal\Tests\BrowserTestBase;

/**
 * Tests the Bartik theme.
 *
 * @group bartik
 * @group legacy
 */
class BartikTest extends BrowserTestBase {

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'bartik';

  /**
   * Tests that the Bartik theme always adds its message CSS files.
   *
   * @see bartik.libraries.yml
   * @see classy.info.yml
   */
  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');
  }

}

Classes

Namesort descending Description
BartikTest Tests the Bartik theme.