public function UpdateCoreTest::testSecurityUpdateAvailability in Drupal 8
Tests the Update Manager module when a security update is available.
@dataProvider securityUpdateAvailabilityProvider
Parameters
string $site_patch_version: The patch version to set the site to for testing.
string[] $expected_security_releases: The security releases, if any, that the status report should recommend.
string $expected_update_message_type: The type of update message expected.
string $fixture: The test fixture that contains the test XML.
File
- core/modules/ update/ tests/ src/ Functional/ UpdateCoreTest.php, line 208 
Class
- UpdateCoreTest
- Tests the Update Manager module through a series of functional tests using mock XML data.
Namespace
Drupal\Tests\update\FunctionalCode
public function testSecurityUpdateAvailability($site_patch_version, array $expected_security_releases, $expected_update_message_type, $fixture) {
  $this
    ->setSystemInfo("8.{$site_patch_version}");
  $this
    ->refreshUpdateStatus([
    'drupal' => $fixture,
  ]);
  $this
    ->assertSecurityUpdates('drupal-8', $expected_security_releases, $expected_update_message_type, 'table.update');
}