BartikTest.php 708 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Drupal\FunctionalTests\Theme;
  3. use Drupal\Tests\BrowserTestBase;
  4. /**
  5. * Tests the Bartik theme.
  6. *
  7. * @group bartik
  8. */
  9. class BartikTest extends BrowserTestBase {
  10. /**
  11. * {@inheritdoc}
  12. */
  13. protected $defaultTheme = 'bartik';
  14. /**
  15. * Tests that the Bartik theme always adds its message CSS files.
  16. *
  17. * @see bartik.libraries.yml
  18. * @see classy.info.yml
  19. */
  20. public function testRegressionMissingMessagesCss() {
  21. $this->drupalGet('');
  22. $this->assertSession()->statusCodeEquals(200);
  23. $this->assertSession()->responseContains('bartik/css/components/messages.css');
  24. $this->assertSession()->responseContains('bartik/css/classy/components/messages.css');
  25. }
  26. }