class BartikTest
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/FunctionalTests/Theme/BartikTest.php \Drupal\FunctionalTests\Theme\BartikTest
Tests the Bartik theme.
@group bartik @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\bartik\Functional\BartikTest extends \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of BartikTest
File
-
core/
themes/ bartik/ tests/ src/ Functional/ BartikTest.php, line 13
Namespace
Drupal\Tests\bartik\FunctionalView source
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');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.