function UpdateTestBase::standardTests
Runs a series of assertions that are applicable to all update statuses.
File
-
core/
modules/ update/ src/ Tests/ UpdateTestBase.php, line 83
Class
- UpdateTestBase
- Defines some shared functions used by all update tests.
Namespace
Drupal\update\TestsCode
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'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.