Skip to content

Commit

Permalink
updating automated testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemadison13 authored and Mike Madison committed Mar 28, 2022
1 parent 74ecf30 commit f02ffc7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/phpunit/src/DrupalSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Acquia\Blt\Tests;

use Acquia\Blt\Robo\Common\YamlMunge;

/**
* Tests Drupal settings.
*/
Expand All @@ -20,6 +18,7 @@ public function testSetupDefaultLocalSettings() {
$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"));
$this->assertStringContainsString($this->config->get("drupal.db.database"), file_get_contents("$this->sandboxInstance/docroot/sites/$site/settings/local.settings.php"));
Expand All @@ -34,11 +33,8 @@ public function testSetupDefaultLocalSettings() {

$this->assertFileExists("$this->sandboxInstance/docroot/sites/$site/local.drush.yml");
$this->assertFileExists("$this->sandboxInstance/docroot/sites/$site/default.local.drush.yml");

$output_array = $this->drushJson('status');
$this->assertEquals($output_array['uri'], $this->config->get('project.local.uri'));
$drush_local_site_yml = YamlMunge::parseFile("$this->sandboxInstance/docroot/sites/$site/local.drush.yml");
$this->assertEquals($output_array['uri'], $drush_local_site_yml['options']['uri']);
$this->assertFileExists("$this->sandboxInstance/blt/blt.yml");
$this->assertFileExists("$this->sandboxInstance/blt/ci.blt.yml");
}
}

Expand Down

0 comments on commit f02ffc7

Please sign in to comment.