function DevReleaseTest::getProjectData
Same name in other branches
- 11.x core/modules/update/tests/src/Kernel/DevReleaseTest.php \Drupal\Tests\update\Kernel\DevReleaseTest::getProjectData()
Gets project data from update_calculate_project_data().
Parameters
array $system_info: System test information as used by update_test_system_info_alter().
Return value
array[] The project data as returned by update_calculate_project_data().
See also
update_test_system_info_alter()
2 calls to DevReleaseTest::getProjectData()
- DevReleaseTest::testSecurityUpdateEmptyProjectTimestamp in core/
modules/ update/ tests/ src/ Kernel/ DevReleaseTest.php - Tests security updates are empty with a dev version and an empty timestamp.
- DevReleaseTest::testSecurityUpdates in core/
modules/ update/ tests/ src/ Kernel/ DevReleaseTest.php - Tests security updates when the installed version is a dev version.
File
-
core/
modules/ update/ tests/ src/ Kernel/ DevReleaseTest.php, line 132
Class
- DevReleaseTest
- Tests the project data when the installed version is a dev version.
Namespace
Drupal\Tests\update\KernelCode
private function getProjectData(array $system_info) : array {
$this->config('update_test.settings')
->set('system_info', $system_info)
->save();
update_storage_clear();
$available = update_get_available(TRUE);
return update_calculate_project_data($available);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.