You are here

public function StableBaseThemeUpdateTest::testUpdateHookN in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Update/StableBaseThemeUpdateTest.php \Drupal\system\Tests\Update\StableBaseThemeUpdateTest::testUpdateHookN()

Tests that the Stable base theme is installed if necessary.

File

core/modules/system/src/Tests/Update/StableBaseThemeUpdateTest.php, line 48
Contains \Drupal\system\Tests\Update\StableBaseThemeUpdateTest.

Class

StableBaseThemeUpdateTest
Tests the upgrade path for introducing the Stable base theme.

Namespace

Drupal\system\Tests\Update

Code

public function testUpdateHookN() {
  $this
    ->assertTrue($this->themeHandler
    ->themeExists('test_stable'));
  $this
    ->assertFalse($this->themeHandler
    ->themeExists('stable'));
  $this
    ->runUpdates();

  // Refresh the theme handler now that Stable has been installed.
  $this->themeHandler
    ->refreshInfo();
  $this
    ->assertTrue($this->themeHandler
    ->themeExists('stable'));
}