function UpdateCoreTest::testNoUpdatesAvailable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/update/src/Tests/UpdateCoreTest.php \Drupal\update\Tests\UpdateCoreTest::testNoUpdatesAvailable()
Tests the Update Manager module when no updates are available.
File
- core/
modules/ update/ src/ Tests/ UpdateCoreTest.php, line 52 - 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 testNoUpdatesAvailable() {
foreach (array(
0,
1,
) as $minor_version) {
foreach (array(
0,
1,
) as $patch_version) {
foreach (array(
'-alpha1',
'-beta1',
'',
) as $extra_version) {
$this
->setSystemInfo("8.{$minor_version}.{$patch_version}" . $extra_version);
$this
->refreshUpdateStatus(array(
'drupal' => "{$minor_version}.{$patch_version}" . $extra_version,
));
$this
->standardTests();
$this
->assertText(t('Up to date'));
$this
->assertNoText(t('Update available'));
$this
->assertNoText(t('Security update required!'));
$this
->assertRaw('check.svg', 'Check icon was found.');
}
}
}
}