
| Current Path : /var/www/html/dataninja.cn/core/tests/Drupal/FunctionalTests/Theme/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/dataninja.cn/core/tests/Drupal/FunctionalTests/Theme/BartikTest.php |
<?php
namespace Drupal\FunctionalTests\Theme;
use Drupal\Tests\BrowserTestBase;
/**
* Tests the Bartik theme.
*
* @group bartik
*/
class BartikTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->assertTrue($this->container->get('theme_installer')->install(['bartik']));
$this->container->get('config.factory')
->getEditable('system.theme')
->set('default', 'bartik')
->save();
}
/**
* Tests that the Bartik theme always adds its message CSS and Classy's.
*
* @see bartik.libraries.yml
* @see classy.info.yml
*/
public function testRegressionMissingMessagesCss() {
$this->drupalGet('');
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->responseContains('bartik/css/components/messages.css');
$this->assertSession()->responseContains('classy/css/components/messages.css');
}
}