Problem/Motivation

Tests against 9.0.x have shown that \Drupal\FunctionalTests\Installer\InstallerExistingConfigTest has a dependency on localize.drupal.org. Our tests shouldn't do that.

Proposed resolution

Create a local translation file.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

N/a

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Version: 8.8.x-dev » 8.9.x-dev
Status: Active » Needs review
FileSize
1.37 KB

This will allow the test to pass on 9.0.x and also pass when l.d.o is down or you are running the test whilst offline.

mikelutz’s picture

Priority: Normal » Critical
Parent issue: » #3087874: [meta] Make 9.0.x branch pass testbot
alexpott’s picture

+++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php
@@ -12,12 +12,22 @@ class InstallerExistingConfigTest extends InstallerExistingConfigTestBase {
-  public function setUpSite() {
...
+  public function setUpSettings() {
     // The configuration is from a site installed in French.
     // So after selecting the profile the installer detects that the site must
     // be installed in French, thus we change the button translation.
     $this->translations['Save and continue'] = 'Enregistrer et continuer';
-    parent::setUpSite();
+    parent::setUpSettings();
   }

This change from setUpSite to setUpSettings is slightly fun - it appears that when translations are available we're able to use them slightly earlier - which is fine as the main point of the test is upheld...

ie.

// The configuration is from a site installed in French.
// So after selecting the profile the installer detects that the site must
// be installed in French, thus we change the button translation.

Wim Leers’s picture

Assigned: Unassigned » Gábor Hojtsy
Issue tags: +Drupal 9, +D8MI, +hardening

I'm sure @Gábor Hojtsy will have thoughts about this :)

To me, this looks great!

Berdir’s picture

Status: Needs review » Reviewed & tested by the community

Agreed, this looks fine. Leaving assigned to Gabor, then he can just commit it if he wants to :)

Gábor Hojtsy’s picture

Assigned: Gábor Hojtsy » Unassigned

Totally agree with this, we should not be testing your internet connection :) I may be able to commit later. Busy with something else now, so will let others take it if they reach it sooner :)

mikelutz’s picture

  • Gábor Hojtsy committed 48cfce3 on 9.0.x
    Issue #3088012 by alexpott, mikelutz, Wim Leers, Berdir:...

  • Gábor Hojtsy committed 9286e7c on 8.9.x
    Issue #3088012 by alexpott, mikelutz, Wim Leers, Berdir:...

  • Gábor Hojtsy committed 0250d8c on 8.8.x
    Issue #3088012 by alexpott, mikelutz, Wim Leers, Berdir:...
Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Superb, thanks all!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.