You are here

BartikTest.php in Drupal 8

Same filename and directory in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Theme/BartikTest.php

File

core/tests/Drupal/FunctionalTests/Theme/BartikTest.php
View source
<?php

namespace Drupal\FunctionalTests\Theme;

use Drupal\Tests\BrowserTestBase;

/**
 * Tests the Bartik theme.
 *
 * @group bartik
 */
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.