Skip to content

Commit

Permalink
ACMS-3658: More tests added.
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkhode1 committed Mar 15, 2024
1 parent 9185f6f commit 271469e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions tests/src/Functional/Config/DefaultConfigTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

namespace Acquia\Drupal\RecommendedSettings\Tests\Functional\Config;

use Acquia\Drupal\RecommendedSettings\Config\DefaultConfig;
use Acquia\Drupal\RecommendedSettings\Tests\FunctionalTestBase;

/**
* Functional test for the DefaultConfig class.
*
* @covers \Acquia\Drupal\RecommendedSettings\Config\DefaultConfig
*/
class DefaultConfigTest extends FunctionalTestBase {

/**
* Tests the default config data.
*/
public function testDefaultConfigData(): void {
$drupal_root = $this->getDrupalRoot();
$project_root = $this->getProjectRoot();

$default_drush_config = new DefaultConfig($drupal_root);
$actual = $default_drush_config->export();
$this->assertArrayHasKey("tmp", $actual);
$this->assertArrayHasKey("dir", $actual['tmp']);
unset($actual['tmp']);
$this->assertEquals($actual, [
"repo" => [
"root" => $project_root,
],
"docroot" => $drupal_root,
"composer" => [
"bin" => $project_root . "/vendor/bin",
],
"site" => "default",
]);
}

}

0 comments on commit 271469e

Please sign in to comment.