function UpdateManagerUpdateTest::testDeprecationWarning
Tests the deprecation warnings.
@group legacy
File
-
core/
modules/ update/ tests/ src/ Functional/ UpdateManagerUpdateTest.php, line 322
Class
- UpdateManagerUpdateTest
- Tests the Update Manager module's 'Update' form and functionality.
Namespace
Drupal\Tests\update\FunctionalCode
public function testDeprecationWarning() : void {
$this->drupalGet('admin/theme/update');
$this->expectDeprecation('The path /admin/theme/update is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use /admin/appearance/update. See https://www.drupal.org/node/3382805');
$this->assertSession()
->statusMessageContains("You have been redirected from admin/theme/update. Update links, shortcuts, and bookmarks to use admin/appearance/update.", 'warning');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.