function UpdateCoreTest::testNoUpdatesAvailable

Tests the Update Manager module when no updates are available.

File

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

Class

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

Namespace

Drupal\update\Tests

Code

function testNoUpdatesAvailable() {
  $this
    ->setSystemInfo7_0();
  $this
    ->refreshUpdateStatus(array(
    'drupal' => '0',
  ));
  $this
    ->standardTests();
  $this
    ->assertText(t('Up to date'));
  $this
    ->assertNoText(t('Update available'));
  $this
    ->assertNoText(t('Security update required!'));
}