protected function UpdateTestBase::standardTests in Drupal 8
Same name in this branch
- 8 core/modules/update/src/Tests/UpdateTestBase.php \Drupal\update\Tests\UpdateTestBase::standardTests()
- 8 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.
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'));
}