protected function ProjectReleaseTest::getValidData in Drupal 10
Same name and namespace in other branches
- 9 core/modules/update/tests/src/Unit/ProjectReleaseTest.php \Drupal\Tests\update\Unit\ProjectReleaseTest::getValidData()
Gets valid data for a project release.
Return value
mixed[] The data for the project release.
File
- core/
modules/ update/ tests/ src/ Unit/ ProjectReleaseTest.php, line 245
Class
- ProjectReleaseTest
- @coversDefaultClass \Drupal\update\ProjectRelease
Namespace
Drupal\Tests\update\UnitCode
protected function getValidData() : array {
return [
'status' => 'published',
'release_link' => 'https://drupal.org/release-link',
'version' => '8.0.0',
'download_link' => 'https://drupal.org/download-link',
'core_compatibility_message' => 'This is compatible',
'date' => 1452229200,
'terms' => [
'Release type' => [
'Security update',
'Unsupported',
'Insecure',
],
],
'core_compatible' => TRUE,
];
}