12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?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');
- }
- }
|