Mercurial > hg > isophonics-drupal-site
view core/tests/Drupal/FunctionalTests/Theme/ClassyTest.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
line wrap: on
line source
<?php namespace Drupal\FunctionalTests\Theme; use Drupal\Tests\BrowserTestBase; /** * Tests the classy theme. * * @group classy */ class ClassyTest extends BrowserTestBase { /** * {@inheritdoc} */ public function setUp() { parent::setUp(); $this->assertTrue($this->container->get('theme_installer')->install(['classy'])); $this->container->get('config.factory') ->getEditable('system.theme') ->set('default', 'classy') ->save(); } /** * Tests that the Classy theme always adds its message CSS. * * @see classy.info.yml */ public function testRegressionMissingMessagesCss() { $this->drupalGet(''); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->responseContains('classy/css/components/messages.css'); } }