function UpdateMiscTest::testLanguageModuleUpdate
Same name in other branches
- 10 core/modules/update/tests/src/Functional/UpdateMiscTest.php \Drupal\Tests\update\Functional\UpdateMiscTest::testLanguageModuleUpdate()
Checks language module in core package at admin/reports/updates.
File
-
core/
modules/ update/ tests/ src/ Functional/ UpdateMiscTest.php, line 220
Class
- UpdateMiscTest
- Tests general functionality of the Update module.
Namespace
Drupal\Tests\update\FunctionalCode
public function testLanguageModuleUpdate() : void {
$this->drupalLogin($this->drupalCreateUser([
'administer site configuration',
]));
// Instead of using refreshUpdateStatus(), set these manually.
$this->config('update.settings')
->set('fetch.url', Url::fromRoute('update_test.update_test')->setAbsolute()
->toString())
->save();
$this->mockReleaseHistory([
'drupal' => '0.1',
]);
$this->drupalGet('admin/reports/updates');
$this->assertSession()
->pageTextContains('Language');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.