You are here

protected function AutomaticUpdatesFunctionalTestBase::checkForUpdates in Automatic Updates 8.2

Checks for available updates.

Assumes that a user with appropriate permissions is logged in.

6 calls to AutomaticUpdatesFunctionalTestBase::checkForUpdates()
FileSystemOperationsTest::setUp in tests/src/Functional/FileSystemOperationsTest.php
ReadinessValidationTest::testReadinessChecksStatusReport in tests/src/Functional/ReadinessValidationTest.php
Tests readiness checkers on status report page.
UpdaterFormTest::setUp in tests/src/Functional/UpdaterFormTest.php
UpdaterFormTest::testFormNotDisplayedIfAlreadyCurrent in tests/src/Functional/UpdaterFormTest.php
Tests that the form doesn't display any buttons if Drupal is up-to-date.
UpdaterFormTest::testTableLooksCorrect in tests/src/Functional/UpdaterFormTest.php
Tests that available updates are rendered correctly in a table.

... See full list

File

tests/src/Functional/AutomaticUpdatesFunctionalTestBase.php, line 75

Class

AutomaticUpdatesFunctionalTestBase
Base class for functional tests of the Automatic Updates module.

Namespace

Drupal\Tests\automatic_updates\Functional

Code

protected function checkForUpdates() : void {
  $this
    ->drupalGet('/admin/reports/updates');
  $this
    ->getSession()
    ->getPage()
    ->clickLink('Check manually');
  $this
    ->checkForMetaRefresh();
}