3 namespace Drupal\FunctionalTests\Theme;
5 use Drupal\Tests\BrowserTestBase;
8 * Tests the Bartik theme.
12 class BartikTest extends BrowserTestBase {
17 public function setUp() {
20 $this->assertTrue($this->container->get('theme_installer')->install(['bartik']));
21 $this->container->get('config.factory')
22 ->getEditable('system.theme')
23 ->set('default', 'bartik')
28 * Tests that the Bartik theme always adds its message CSS and Classy's.
30 * @see bartik.libraries.yml
31 * @see classy.info.yml
33 public function testRegressionMissingMessagesCss() {
35 $this->assertSession()->statusCodeEquals(200);
36 $this->assertSession()->responseContains('bartik/css/components/messages.css');
37 $this->assertSession()->responseContains('classy/css/components/messages.css');