ClaroBlockFilterTest.php

Same filename in other branches
  1. 9 core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroBlockFilterTest.php
  2. 10 core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroBlockFilterTest.php
  3. 11.x core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroBlockFilterTest.php

Namespace

Drupal\FunctionalJavascriptTests\Theme

File

core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroBlockFilterTest.php

View source
<?php

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 enable.
     *
     * 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[]
     */
    public static $modules = [
        'shortcut',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() {
        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.