function SecurityAdvisoriesFetcherTest::providerIgnoreAdvisories
Same name in other branches
- 9 core/modules/system/tests/src/Kernel/SecurityAdvisories/SecurityAdvisoriesFetcherTest.php \Drupal\Tests\system\Kernel\SecurityAdvisories\SecurityAdvisoriesFetcherTest::providerIgnoreAdvisories()
- 10 core/modules/system/tests/src/Kernel/SecurityAdvisories/SecurityAdvisoriesFetcherTest.php \Drupal\Tests\system\Kernel\SecurityAdvisories\SecurityAdvisoriesFetcherTest::providerIgnoreAdvisories()
Data provider for testIgnoreAdvisories().
File
-
core/
modules/ system/ tests/ src/ Kernel/ SecurityAdvisories/ SecurityAdvisoriesFetcherTest.php, line 262
Class
- SecurityAdvisoriesFetcherTest
- @coversDefaultClass \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher
Namespace
Drupal\Tests\system\Kernel\SecurityAdvisoriesCode
public static function providerIgnoreAdvisories() : array {
return [
'contrib:not-exact:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'1.0',
],
],
'existing_version' => '8.x-1.0',
],
'contrib:non-matching:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'8.x-1.1',
],
],
'existing_version' => '8.x-1.0',
],
'contrib:not-exact:non-psa-reversed' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'8.x-1.0',
],
],
'existing_version' => '1.0',
],
'contrib:semver-non-exact:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'1.0',
],
],
'existing_version' => '1.0.0',
],
'contrib:semver-major-match-not-minor:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'1.1.0',
],
],
'existing_version' => '1.0.0',
],
'contrib:semver-major-minor-match-not-patch:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'1.1.1',
],
],
'existing_version' => '1.1.0',
],
'contrib:non-matching-not-exact:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'1.1',
],
],
'existing_version' => '8.x-1.0',
],
'contrib:both-extra:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'8.x-1.0-extraStringNotSpecial',
],
],
'existing_version' => '8.x-1.0-alsoNotSpecialNotMatching',
],
'contrib:semver-7major-match:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'7.x-1.0',
],
],
'existing_version' => '1.0.0',
],
'contrib:different-majors:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'7.x-1.0',
],
],
'existing_version' => '8.x-1.0',
],
'contrib:semver-different-majors:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'1.0.0',
],
],
'existing_version' => '2.0.0',
],
'contrib:no-version:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'8.x-1.1',
],
],
'existing_version' => '',
],
'contrib:insecure-extra:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'8.x-1.0-extraStringNotSpecial',
],
],
'existing_version' => '8.x-1.0',
],
'contrib:existing-dev-different-minor:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'8.x-1.0',
],
],
'existing_version' => '8.x-2.x-dev',
],
'contrib:existing-dev-different-major:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'7.x-1.0',
],
],
'existing_version' => '8.x-1.x-dev',
],
'contrib:existing-dev-different-major-semver:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'8.0.0',
],
],
'existing_version' => '9.0.x-dev',
],
'contrib:existing-dev-different-major-no-minor-semver:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'8.0.0',
],
],
'existing_version' => '9.x-dev',
],
'contrib:existing-dev-different-minor-semver:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'1.0.0',
],
],
'existing_version' => '1.1.0-dev',
],
'contrib:existing-dev-different-minor-x-semver:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'1.0.0',
],
],
'existing_version' => '1.1.x-dev',
],
'contrib:existing-dev-different-8major-semver:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'8.x-1.0',
],
],
'existing_version' => '8.x-dev',
],
'contrib:non-existing-project:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'non_existing_project',
'insecure' => [
'8.x-1.0',
],
],
],
'contrib:non-existing-project:psa' => [
'feed_item' => [
'is_psa' => 1,
'type' => 'module',
'project' => 'non_existing_project',
'insecure' => [
'8.x-1.0',
],
],
],
'core:non-matching:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'core',
'project' => 'drupal',
'insecure' => [
'9.0.0',
],
],
],
'core:non-matching-not-exact:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'core',
'project' => 'drupal',
'insecure' => [
'9.1',
],
],
],
'core:no-insecure:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'core',
'project' => 'drupal',
'insecure' => [],
],
],
'contrib:existing-extra:non-psa' => [
'feed_item' => [
'is_psa' => 0,
'type' => 'module',
'project' => 'the_project',
'insecure' => [
'8.x-1.0',
],
],
'existing_version' => '8.x-1.0-extraStringNotSpecial',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.