You are here

protected function UpdateTestBase::standardTests in Drupal 8

Same name in this branch
  1. 8 core/modules/update/src/Tests/UpdateTestBase.php \Drupal\update\Tests\UpdateTestBase::standardTests()
  2. 8 core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::standardTests()
Same name and namespace in other branches
  1. 9 core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::standardTests()
  2. 10 core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::standardTests()

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

10 calls to UpdateTestBase::standardTests()
UpdateContribTest::testNonStandardVersionStrings in core/modules/update/tests/src/Functional/UpdateContribTest.php
Tests messages for invalid, empty and missing version strings.
UpdateContribTest::testNormalUpdateAvailable in core/modules/update/tests/src/Functional/UpdateContribTest.php
Tests the Update Manager module when one normal update is available.
UpdateContribTest::testUpdateContribBasic in core/modules/update/tests/src/Functional/UpdateContribTest.php
Tests the basic functionality of a contrib module on the status report.
UpdateContribTest::testUpdateContribOrder in core/modules/update/tests/src/Functional/UpdateContribTest.php
Tests that contrib projects are ordered by project name.
UpdateCoreTest::testMajorUpdateAvailable in core/modules/update/tests/src/Functional/UpdateCoreTest.php
Tests the Update Manager module when a major update is available.

... See full list

File

core/modules/update/tests/src/Functional/UpdateTestBase.php, line 108

Class

UpdateTestBase
Defines some shared functions used by all update tests.

Namespace

Drupal\Tests\update\Functional

Code

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