ClassyTest.php 580 B

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