class ClassyTest
Same name in this branch
- 9 core/themes/classy/tests/src/Kernel/ClassyTest.php \Drupal\Tests\classy\Kernel\ClassyTest
Same name and namespace in other branches
- 8.9.x core/modules/system/tests/src/Kernel/Render/ClassyTest.php \Drupal\Tests\system\Kernel\Render\ClassyTest
- 8.9.x core/tests/Drupal/FunctionalTests/Theme/ClassyTest.php \Drupal\FunctionalTests\Theme\ClassyTest
Tests the classy theme.
@group classy @group legacy
Hierarchy
- class \Drupal\Tests\BrowserTestBase uses \Drupal\Core\Test\FunctionalTestSetupTrait, \Drupal\Tests\UiHelperTrait, \Drupal\Core\Test\TestSetupTrait, \Drupal\Tests\block\Traits\BlockCreationTrait, \Drupal\FunctionalTests\AssertLegacyTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\node\Traits\NodeCreationTrait, \Drupal\Tests\node\Traits\ContentTypeCreationTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\user\Traits\UserCreationTrait, \Drupal\Tests\XdebugRequestTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, \Drupal\Tests\ExtensionListTestTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\classy\Functional\ClassyTest extends \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of ClassyTest
File
-
core/
themes/ classy/ tests/ src/ Functional/ ClassyTest.php, line 13
Namespace
Drupal\Tests\classy\FunctionalView source
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');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.