Mercurial > hg > cmmr2012-drupal-site
diff core/tests/Drupal/FunctionalTests/Theme/BartikTest.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/tests/Drupal/FunctionalTests/Theme/BartikTest.php Thu Jul 05 14:24:15 2018 +0000 @@ -0,0 +1,40 @@ +<?php + +namespace Drupal\FunctionalTests\Theme; + +use Drupal\Tests\BrowserTestBase; + +/** + * Tests the Bartik theme. + * + * @group bartik + */ +class BartikTest extends BrowserTestBase { + + /** + * {@inheritdoc} + */ + public function setUp() { + parent::setUp(); + + $this->assertTrue($this->container->get('theme_installer')->install(['bartik'])); + $this->container->get('config.factory') + ->getEditable('system.theme') + ->set('default', 'bartik') + ->save(); + } + + /** + * Tests that the Bartik theme always adds its message CSS and Classy's. + * + * @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('classy/css/components/messages.css'); + } + +}