ClassyTest.php

Same filename in this branch
  1. 9 core/themes/classy/tests/src/Kernel/ClassyTest.php
Same filename in other branches
  1. 8.9.x core/modules/system/tests/src/Kernel/Render/ClassyTest.php
  2. 8.9.x core/tests/Drupal/FunctionalTests/Theme/ClassyTest.php

Namespace

Drupal\Tests\classy\Functional

File

core/themes/classy/tests/src/Functional/ClassyTest.php

View source
<?php

namespace Drupal\Tests\classy\Functional;

use Drupal\Tests\BrowserTestBase;

/**
 * Tests the classy theme.
 *
 * @group classy
 * @group legacy
 */
class ClassyTest extends BrowserTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected $defaultTheme = 'classy';
    
    /**
     * Tests that the Classy theme always adds its message CSS.
     *
     * @see classy.info.yml
     */
    public function testRegressionMissingMessagesCss() {
        $this->drupalGet('');
        $this->assertSession()
            ->statusCodeEquals(200);
        $this->assertSession()
            ->responseContains('classy/css/components/messages.css');
    }

}

Classes

Title Deprecated Summary
ClassyTest Tests the classy theme.

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