Skip to content
Snippets Groups Projects
Verified Commit 986c71cc authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3469583 by catch, pooja_sharma: Speed up UpdateSemverTestSecurityCoverageTest

(cherry picked from commit 04fcdb47)
parent b600b0d9
No related branches found
No related tags found
10 merge requests!10602Issue #3438769 by vinmayiswamy, antonnavi, michelle, amateescu: Sub workspace does not clear,!10301Issue #3469309 by mstrelan, smustgrave, moshe weitzman: Use one-time login...,!10187Issue #3487488 by dakwamine: ExtensionMimeTypeGuesser::guessMimeType must support file names with "0" (zero) like foo.0.zip,!9929Issue #3445469 by pooja_sharma, smustgrave: Add additional test coverage for...,!9787Resolve issue 3479427 - bootstrap barrio issue under Windows,!9742Issue #3463908 by catch, quietone: Split OptionsFieldUiTest into two,!9526Issue #3458177 by mondrake, catch, quietone, godotislate, longwave, larowlan,...,!6502Draft: Resolve #2938524 "Plach testing issue",!38582585169-10.1.x,!3226Issue #2987537: Custom menu link entity type should not declare "bundle" entity key
Pipeline #266261 passed
Pipeline: drupal

#266264

    ......@@ -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.
    *
    ......@@ -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]);
    ......@@ -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.';
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment