From e273171b31b373c0b07989a4a3e03a4c59d41b77 Mon Sep 17 00:00:00 2001 From: Vishal Khode <81069167+vishalkhode1@users.noreply.github.com> Date: Wed, 3 Apr 2024 21:57:13 +0530 Subject: [PATCH] BLT-5237: Fix failing PHPUnit tests. (#4747) --- tests/packages_alter.yml | 3 --- tests/phpunit/src/DrupalSettingsTest.php | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/packages_alter.yml b/tests/packages_alter.yml index 2f0e2fedb..44c46b742 100644 --- a/tests/packages_alter.yml +++ b/tests/packages_alter.yml @@ -2,6 +2,3 @@ acquia/blt: type: composer-plugin version: 13.x version_dev: 13.x-dev - -acquia/drupal-recommended-settings: - type: composer-plugin diff --git a/tests/phpunit/src/DrupalSettingsTest.php b/tests/phpunit/src/DrupalSettingsTest.php index 412464627..4c93e7432 100644 --- a/tests/phpunit/src/DrupalSettingsTest.php +++ b/tests/phpunit/src/DrupalSettingsTest.php @@ -14,10 +14,9 @@ public function testSetupDefaultLocalSettings() { $this->blt('blt:init:settings'); $sites = $this->config->get("multisites"); + $this->assertFileExists("$this->sandboxInstance/docroot/sites/default/default.settings.php"); foreach ($sites as $site) { $this->assertFileExists("$this->sandboxInstance/docroot/sites/$site/settings/default.local.settings.php"); - $this->assertFileExists("$this->sandboxInstance/docroot/sites/$site/default.settings.php"); - $this->assertFileExists("$this->sandboxInstance/docroot/sites/$site/settings/local.settings.php"); $this->assertFileExists("$this->sandboxInstance/docroot/sites/$site/settings/local.settings.php"); $this->assertStringContainsString('${drupal.db.database}', file_get_contents("$this->sandboxInstance/docroot/sites/$site/settings/default.local.settings.php"));