You are here

public function MenuRouterTest::testThemeIntegration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Menu/MenuRouterTest.php \Drupal\system\Tests\Menu\MenuRouterTest::testThemeIntegration()

Tests theme integration.

File

core/modules/system/src/Tests/Menu/MenuRouterTest.php, line 247
Contains \Drupal\system\Tests\Menu\MenuRouterTest.

Class

MenuRouterTest
Tests menu router and default menu link functionality.

Namespace

Drupal\system\Tests\Menu

Code

public function testThemeIntegration() {
  $this->defaultTheme = 'bartik';
  $this->adminTheme = 'seven';
  $theme_handler = $this->container
    ->get('theme_handler');
  $theme_handler
    ->install([
    $this->defaultTheme,
    $this->adminTheme,
  ]);
  $this
    ->config('system.theme')
    ->set('default', $this->defaultTheme)
    ->set('admin', $this->adminTheme)
    ->save();
  $this
    ->doTestThemeCallbackMaintenanceMode();
  $this
    ->doTestThemeCallbackFakeTheme();
  $this
    ->doTestThemeCallbackAdministrative();
  $this
    ->doTestThemeCallbackNoThemeRequested();
  $this
    ->doTestThemeCallbackOptionalTheme();
}