function ProjectInfoTest::providerInstalledVersionSafe
Data provider for ::testInstalledVersionSafe().
Return value
array[] The test cases.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ ProjectInfoTest.php, line 200
Class
- ProjectInfoTest
- @coversDefaultClass \Drupal\package_manager\ProjectInfo @group auto_updates @internal
Namespace
Drupal\Tests\package_manager\KernelCode
public static function providerInstalledVersionSafe() : array {
$dir = __DIR__ . '/../../fixtures/release-history';
return [
'safe version' => [
'9.8.0',
$dir . '/drupal.9.8.2.xml',
TRUE,
],
'unpublished version' => [
'9.8.0',
$dir . '/drupal.9.8.2-unsupported_unpublished.xml',
FALSE,
],
'unsupported branch' => [
'9.6.1',
$dir . '/drupal.9.8.2-unsupported_unpublished.xml',
FALSE,
],
'unsupported version' => [
'9.8.1',
$dir . '/drupal.9.8.2-unsupported_unpublished.xml',
FALSE,
],
'insecure version' => [
'9.8.0',
$dir . '/drupal.9.8.1-security.xml',
FALSE,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.