comparison core/tests/Drupal/FunctionalTests/Theme/BartikTest.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\FunctionalTests\Theme;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8 * Tests the Bartik theme.
9 *
10 * @group bartik
11 */
12 class BartikTest extends BrowserTestBase {
13
14 /**
15 * {@inheritdoc}
16 */
17 public function setUp() {
18 parent::setUp();
19
20 $this->assertTrue($this->container->get('theme_installer')->install(['bartik']));
21 $this->container->get('config.factory')
22 ->getEditable('system.theme')
23 ->set('default', 'bartik')
24 ->save();
25 }
26
27 /**
28 * Tests that the Bartik theme always adds its message CSS and Classy's.
29 *
30 * @see bartik.libraries.yml
31 * @see classy.info.yml
32 */
33 public function testRegressionMissingMessagesCss() {
34 $this->drupalGet('');
35 $this->assertSession()->statusCodeEquals(200);
36 $this->assertSession()->responseContains('bartik/css/components/messages.css');
37 $this->assertSession()->responseContains('classy/css/components/messages.css');
38 }
39
40 }