function MaintenanceThemeUpdateRegistryTest::testMaintenanceThemeUpdateRegistration

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php \Drupal\Tests\system\Functional\Theme\MaintenanceThemeUpdateRegistryTest::testMaintenanceThemeUpdateRegistration()
  2. 10 core/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php \Drupal\Tests\system\Functional\Theme\MaintenanceThemeUpdateRegistryTest::testMaintenanceThemeUpdateRegistration()

Tests that after installing the profile there are no outstanding updates.

File

core/modules/system/tests/src/Functional/Theme/MaintenanceThemeUpdateRegistryTest.php, line 68

Class

MaintenanceThemeUpdateRegistryTest
Ensures theme update functions are registered for maintenance themes.

Namespace

Drupal\Tests\system\Functional\Theme

Code

public function testMaintenanceThemeUpdateRegistration() : void {
    $this->drupalLogin($this->drupalCreateUser([
        'administer software updates',
    ]));
    $this->drupalGet('update.php/selection');
    $this->updateRequirementsProblem();
    $this->drupalGet('update.php/selection');
    $this->assertSession()
        ->pageTextContains('No pending updates.');
}

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