function UpdateSemverTestSecurityAvailabilityTrait::testSecurityUpdateAvailability
Same name in other branches
- 10 core/modules/update/tests/src/Functional/UpdateSemverTestSecurityAvailabilityTrait.php \Drupal\Tests\update\Functional\UpdateSemverTestSecurityAvailabilityTrait::testSecurityUpdateAvailability()
Tests the update manager when a security update is available.
File
-
core/
modules/ update/ tests/ src/ Functional/ UpdateSemverTestSecurityAvailabilityTrait.php, line 15
Class
- UpdateSemverTestSecurityAvailabilityTrait
- Provides a test and data provider for semver security availability tests.
Namespace
Drupal\Tests\update\FunctionalCode
public function testSecurityUpdateAvailability() : void {
foreach (static::securityUpdateAvailabilityProvider() as $case) {
$this->doTestSecurityUpdateAvailability($case['site_patch_version'], $case['expected_security_releases'], $case['expected_update_message_type'], $case['fixture']);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.