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