comparison core/tests/Drupal/FunctionalTests/Theme/ClassyTest.php @ 0:c75dbcec494b

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