Loading core/modules/update/tests/src/Functional/UpdateSemverCoreSecurityCoverageTest.php +11 −5 Original line number Diff line number Diff line Loading @@ -8,10 +8,18 @@ * Tests the security coverage messages for Drupal core versions. * * @group update * @group #slow */ class UpdateSemverCoreSecurityCoverageTest extends UpdateSemverCoreTestBase { /** * Tests the security coverage messages for Drupal core versions. */ public function testSecurityCoverageMessage(): void { foreach (static::securityCoverageMessageProvider() as $case) { $this->doTestSecurityCoverageMessage($case['installed_version'], $case['fixture'], $case['requirements_section_heading'], $case['message'], $case['mock_date']); } } /** * Tests the security coverage messages for Drupal core versions. * Loading @@ -26,10 +34,8 @@ class UpdateSemverCoreSecurityCoverageTest extends UpdateSemverCoreTestBase { * @param string $mock_date * The mock date to use if needed in the format CCYY-MM-DD. If an empty * string is provided, no mock date will be used. * * @dataProvider securityCoverageMessageProvider */ public function testSecurityCoverageMessage($installed_version, $fixture, $requirements_section_heading, $message, $mock_date): void { protected function doTestSecurityCoverageMessage($installed_version, $fixture, $requirements_section_heading, $message, $mock_date): void { \Drupal::state()->set('update_test.mock_date', $mock_date); $this->setProjectInstalledVersion($installed_version); $this->refreshUpdateStatus(['drupal' => $fixture]); Loading Loading @@ -76,7 +82,7 @@ public function testSecurityCoverageMessage($installed_version, $fixture, $requi * - 10.4.0 * - 10.5.0 */ public static function securityCoverageMessageProvider() { protected static function securityCoverageMessageProvider() { $release_coverage_message = 'Visit the release cycle overview for more information on supported releases.'; $coverage_ended_message = 'Coverage has ended'; $update_asap_message = 'Update to a supported minor as soon as possible to continue receiving security updates.'; Loading Loading
core/modules/update/tests/src/Functional/UpdateSemverCoreSecurityCoverageTest.php +11 −5 Original line number Diff line number Diff line Loading @@ -8,10 +8,18 @@ * Tests the security coverage messages for Drupal core versions. * * @group update * @group #slow */ class UpdateSemverCoreSecurityCoverageTest extends UpdateSemverCoreTestBase { /** * Tests the security coverage messages for Drupal core versions. */ public function testSecurityCoverageMessage(): void { foreach (static::securityCoverageMessageProvider() as $case) { $this->doTestSecurityCoverageMessage($case['installed_version'], $case['fixture'], $case['requirements_section_heading'], $case['message'], $case['mock_date']); } } /** * Tests the security coverage messages for Drupal core versions. * Loading @@ -26,10 +34,8 @@ class UpdateSemverCoreSecurityCoverageTest extends UpdateSemverCoreTestBase { * @param string $mock_date * The mock date to use if needed in the format CCYY-MM-DD. If an empty * string is provided, no mock date will be used. * * @dataProvider securityCoverageMessageProvider */ public function testSecurityCoverageMessage($installed_version, $fixture, $requirements_section_heading, $message, $mock_date): void { protected function doTestSecurityCoverageMessage($installed_version, $fixture, $requirements_section_heading, $message, $mock_date): void { \Drupal::state()->set('update_test.mock_date', $mock_date); $this->setProjectInstalledVersion($installed_version); $this->refreshUpdateStatus(['drupal' => $fixture]); Loading Loading @@ -76,7 +82,7 @@ public function testSecurityCoverageMessage($installed_version, $fixture, $requi * - 10.4.0 * - 10.5.0 */ public static function securityCoverageMessageProvider() { protected static function securityCoverageMessageProvider() { $release_coverage_message = 'Visit the release cycle overview for more information on supported releases.'; $coverage_ended_message = 'Coverage has ended'; $update_asap_message = 'Update to a supported minor as soon as possible to continue receiving security updates.'; Loading