function DevReleaseTest::testSecurityUpdateEmptyProjectTimestamp
Same name in other branches
- 11.x core/modules/update/tests/src/Kernel/DevReleaseTest.php \Drupal\Tests\update\Kernel\DevReleaseTest::testSecurityUpdateEmptyProjectTimestamp()
Tests security updates are empty with a dev version and an empty timestamp.
Here the timestamp for the installed dev version is set to 0(empty timestamp) and according to the current logic for dev installed version, no updates will be shown as security update.
File
-
core/
modules/ update/ tests/ src/ Kernel/ DevReleaseTest.php, line 108
Class
- DevReleaseTest
- Tests the project data when the installed version is a dev version.
Namespace
Drupal\Tests\update\KernelCode
public function testSecurityUpdateEmptyProjectTimestamp() : void {
$system_info = [
'#all' => [
'version' => '8.1.0-dev',
'datestamp' => '0',
],
];
$project_data = $this->getProjectData($system_info);
$this->assertArrayNotHasKey('security updates', $project_data['drupal']);
$this->assertSame(UpdateFetcherInterface::NOT_CHECKED, $project_data['drupal']['status']);
$this->assertSame('Unknown release date', (string) $project_data['drupal']['reason']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.