Skip to content

Commit

Permalink
BLT-5237: Fix failing PHPUnit tests. (#4747)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkhode1 committed Apr 3, 2024
1 parent 1d94ad0 commit e273171
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions tests/packages_alter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@ acquia/blt:
type: composer-plugin
version: 13.x
version_dev: 13.x-dev

acquia/drupal-recommended-settings:
type: composer-plugin
3 changes: 1 addition & 2 deletions tests/phpunit/src/DrupalSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit e273171

Please sign in to comment.