ClaroMenuUiJavascriptTest.php

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

Namespace

Drupal\FunctionalJavascriptTests\Theme

File

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

View source
<?php

declare (strict_types=1);
namespace Drupal\FunctionalJavascriptTests\Theme;

use Drupal\Tests\menu_ui\FunctionalJavascript\MenuUiJavascriptTest;

/**
 * Runs MenuUiJavascriptTest in Claro.
 *
 * @group claro
 *
 * @see \Drupal\Tests\menu_ui\FunctionalJavascript\MenuUiJavascriptTest;
 */
class ClaroMenuUiJavascriptTest extends MenuUiJavascriptTest {
    
    /**
     * {@inheritdoc}
     */
    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();
    }
    
    /**
     * Intentionally empty method.
     *
     * Contextual links do not work in admin themes, so this is empty to prevent
     * this test running in the parent class.
     */
    public function testBlockContextualLinks() : void {
    }

}

Classes

Title Deprecated Summary
ClaroMenuUiJavascriptTest Runs MenuUiJavascriptTest in Claro.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.