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

Issue #3469580 by catch, smustgrave: Speed up UpdateSemverTestSecurityAvailabilityTrait

(cherry picked from commit 0066ab0f)
parent c7a2f294
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 #261951 passed with warnings
Pipeline: drupal

#261955

    ......@@ -8,7 +8,6 @@
    * Tests Update Manager with a security update available for a contrib project.
    *
    * @group update
    * @group #slow
    */
    class UpdateSemverContribSecurityAvailabilityTest extends UpdateSemverContribTestBase {
    ......
    ......@@ -8,7 +8,6 @@
    * Tests Update Manager with a security update available for Drupal core.
    *
    * @group update
    * @group #slow
    */
    class UpdateSemverCoreSecurityAvailabilityTest extends UpdateSemverCoreTestBase {
    ......
    ......@@ -9,6 +9,15 @@
    */
    trait UpdateSemverTestSecurityAvailabilityTrait {
    /**
    * Tests the update manager when a security update is available.
    */
    public function testSecurityUpdateAvailability(): void {
    foreach (static::securityUpdateAvailabilityProvider() as $case) {
    $this->doTestSecurityUpdateAvailability($case['site_patch_version'], $case['expected_security_releases'], $case['expected_update_message_type'], $case['fixture']);
    }
    }
    /**
    * Tests the Update Manager module when a security update is available.
    *
    ......@@ -20,10 +29,8 @@ trait UpdateSemverTestSecurityAvailabilityTrait {
    * The type of update message expected.
    * @param string $fixture
    * The test fixture that contains the test XML.
    *
    * @dataProvider securityUpdateAvailabilityProvider
    */
    public function testSecurityUpdateAvailability($site_patch_version, array $expected_security_releases, $expected_update_message_type, $fixture): void {
    protected function doTestSecurityUpdateAvailability($site_patch_version, array $expected_security_releases, $expected_update_message_type, $fixture): void {
    $this->setProjectInstalledVersion("8.$site_patch_version");
    $this->refreshUpdateStatus([$this->updateProject => $fixture]);
    $this->assertSecurityUpdates("{$this->updateProject}-8", $expected_security_releases, $expected_update_message_type, $this->updateTableLocator);
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment