You are here

public function ScaffoldTest::testScaffoldOverridingSettingsExcludingHtaccess in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php \Drupal\Tests\Composer\Plugin\Scaffold\Functional\ScaffoldTest::testScaffoldOverridingSettingsExcludingHtaccess()

Asserts that the drupal/assets scaffold files correct for sut.

@dataProvider scaffoldOverridingSettingsExcludingHtaccessValues

Parameters

string $fixture_name: The name of the fixture to use from core/tests/Drupal/Tests/Component/Scaffold/fixtures.

bool $is_link: Whether to use symlinks for 'replace' operations.

bool $relocated_docroot: Whether the named fixture has a relocated document root.

File

core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php, line 228

Class

ScaffoldTest
Tests Composer Scaffold.

Namespace

Drupal\Tests\Composer\Plugin\Scaffold\Functional

Code

public function testScaffoldOverridingSettingsExcludingHtaccess($fixture_name, $is_link, $relocated_docroot) {
  $result = $this
    ->scaffoldSut($fixture_name, $is_link, $relocated_docroot);
  $this
    ->assertCommonDrupalAssetsWereScaffolded($result
    ->docroot(), $is_link);
  $this
    ->assertAutoloadFileCorrect($result
    ->docroot(), $relocated_docroot);
  $this
    ->assertDefaultSettingsFromScaffoldOverride($result
    ->docroot(), $is_link);
  $this
    ->assertHtaccessExcluded($result
    ->docroot());
}