function UpdateCoreTest::testModulePageUpToDate in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/update/src/Tests/UpdateCoreTest.php \Drupal\update\Tests\UpdateCoreTest::testModulePageUpToDate()
Checks the messages at admin/modules when the site is up to date.
File
- core/
modules/ update/ src/ Tests/ UpdateCoreTest.php, line 215 - Contains \Drupal\update\Tests\UpdateCoreTest.
Class
- UpdateCoreTest
- Tests the Update Manager module through a series of functional tests using mock XML data.
Namespace
Drupal\update\TestsCode
function testModulePageUpToDate() {
$this
->setSystemInfo('8.0.0');
// Instead of using refreshUpdateStatus(), set these manually.
$this
->config('update.settings')
->set('fetch.url', Url::fromRoute('update_test.update_test')
->setAbsolute()
->toString())
->save();
$this
->config('update_test.settings')
->set('xml_map', array(
'drupal' => '0.0',
))
->save();
$this
->drupalGet('admin/reports/updates');
$this
->clickLink(t('Check manually'));
$this
->assertText(t('Checked available update data for one project.'));
$this
->drupalGet('admin/modules');
$this
->assertNoText(t('There are updates available for your version of Drupal.'));
$this
->assertNoText(t('There is a security update available for your version of Drupal.'));
}