protected function UpdateCoreTest::setSystemInfo7_0

Sets the version to 7.0 when no project-specific mapping is defined.

8 calls to UpdateCoreTest::setSystemInfo7_0()
UpdateCoreTest::testLanguageModuleUpdate in drupal/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php
Checks language module in core package at admin/reports/updates.
UpdateCoreTest::testModulePageRegularUpdate in drupal/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php
Checks the messages at admin/modules when an update is missing.
UpdateCoreTest::testModulePageRunCron in drupal/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php
Checks that running cron updates the list of available updates.
UpdateCoreTest::testModulePageSecurityUpdate in drupal/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php
Checks the messages at admin/modules when a security update is missing.
UpdateCoreTest::testModulePageUpToDate in drupal/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php
Checks the messages at admin/modules when the site is up to date.

... See full list

File

drupal/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php, line 237
Definition of Drupal\update\Tests\UpdateCoreTest.

Class

UpdateCoreTest
Tests behavior related to discovering and listing updates to Drupal core.

Namespace

Drupal\update\Tests

Code

protected function setSystemInfo7_0() {
  $setting = array(
    '#all' => array(
      'version' => '7.0',
    ),
  );
  config('update_test.settings')
    ->set('system_info', $setting)
    ->save();
}