ClaroBlockFilterTest.php
Same filename in other branches
Namespace
Drupal\FunctionalJavascriptTests\ThemeFile
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ Theme/ ClaroBlockFilterTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\FunctionalJavascriptTests\Theme;
use Drupal\Tests\block\FunctionalJavascript\BlockFilterTest;
/**
* Runs BlockFilterTest in Claro.
*
* @group block
*
* @see \Drupal\Tests\block\FunctionalJavascript\BlockFilterTest.
*/
class ClaroBlockFilterTest extends BlockFilterTest {
/**
* Modules to install.
*
* Install the shortcut module so that claro.settings has its schema checked.
* There's currently no way for Claro to provide a default and have valid
* configuration as themes cannot react to a module install.
*
* @var string[]
*/
protected static $modules = [
'shortcut',
];
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->container
->get('theme_installer')
->install([
'claro',
]);
$this->config('system.theme')
->set('default', 'claro')
->save();
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ClaroBlockFilterTest | Runs BlockFilterTest in Claro. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.