Follow-up to #2384675: Deprecate conf_path()

The parent issue missed usages of the deprecated conf_path() in InstallerExistingSettingsNoProfileTest which should be removed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cilefen’s picture

Status: Fixed » Active
joshi.rohit100’s picture

Status: Active » Needs review
FileSize
1.2 KB
alexpott’s picture

Status: Needs review » Needs work
+++ b/core/modules/system/src/Tests/Installer/InstallerExistingSettingsNoProfileTest.php
@@ -45,11 +46,11 @@ protected function setUp() {
+        'value' => DrupalKernel::getSitePath() . '/files/config_active',
...
+        'value' => DrupalKernel::getSitePath() . '/files/config_staging',

Let's call DrupalKernel::getSitePath() only once.

cilefen’s picture

Status: Needs work » Needs review
FileSize
1.3 KB
cilefen’s picture

Oh I didn't realize ::getSitePath will probably work. Oh no it won't. It isn't a static method.

The last submitted patch, 2: 2503015-2.patch, failed testing.

alexpott’s picture

@cilefen yep you're right - at this point - no container nothing we definitely have to use ::findSitePath()

alexpott’s picture

I've merged this patch into #2487592: CMI: don't ship with a default "active" directory that is empty in most Drupal installations to prevent unnecessary re-rolling and added the contributors to this patch to the suggested commit message on the other issue.

alexpott’s picture

Issue tags: -Performance

Not a performance issue this one :)