You are here

protected function UpdateTestBase::standardTests in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/update/src/Tests/UpdateTestBase.php \Drupal\update\Tests\UpdateTestBase::standardTests()

Runs a series of assertions that are applicable to all update statuses.

6 calls to UpdateTestBase::standardTests()
UpdateContribTest::testUpdateContribBasic in core/modules/update/src/Tests/UpdateContribTest.php
Tests the basic functionality of a contrib module on the status report.
UpdateContribTest::testUpdateContribOrder in core/modules/update/src/Tests/UpdateContribTest.php
Tests that contrib projects are ordered by project name.
UpdateCoreTest::testMajorUpdateAvailable in core/modules/update/src/Tests/UpdateCoreTest.php
Tests the Update Manager module when a major update is available.
UpdateCoreTest::testNormalUpdateAvailable in core/modules/update/src/Tests/UpdateCoreTest.php
Tests the Update Manager module when one normal update is available.
UpdateCoreTest::testNoUpdatesAvailable in core/modules/update/src/Tests/UpdateCoreTest.php
Tests the Update Manager module when no updates are available.

... See full list

File

core/modules/update/src/Tests/UpdateTestBase.php, line 81
Contains \Drupal\update\Tests\UpdateTestBase.

Class

UpdateTestBase
Defines some shared functions used by all update tests.

Namespace

Drupal\update\Tests

Code

protected function standardTests() {
  $this
    ->assertRaw('<h3>' . t('Drupal core') . '</h3>');
  $this
    ->assertRaw(\Drupal::l(t('Drupal'), Url::fromUri('http://example.com/project/drupal')), 'Link to the Drupal project appears.');
  $this
    ->assertNoText(t('No available releases found'));
}