Skip to content
Snippets Groups Projects

Issue #3274858: CoreUpdateTest should test that default.settings.php and default.services.yml can be updated

Merged Issue #3274858: CoreUpdateTest should test that default.settings.php and default.services.yml can be updated
1 file
+ 4
5
Compare changes
  • Side-by-side
  • Inline
@@ -75,13 +75,12 @@ class SiteConfigurationExcluderTest extends PackageManagerKernelTestBase {
@@ -75,13 +75,12 @@ class SiteConfigurationExcluderTest extends PackageManagerKernelTestBase {
// Regular module files should be staged.
// Regular module files should be staged.
$this->assertFileExists("$stage_dir/modules/example/example.info.yml");
$this->assertFileExists("$stage_dir/modules/example/example.info.yml");
// A new file added to the staging area in an excluded directory, should not
// A new file added to the site directory in the staging area should be
// be copied to the active directory.
// copied to the active directory.
$file = "$stage_dir/sites/default/no-copy.txt";
$file = "$stage_dir/sites/default/new.txt";
touch($file);
touch($file);
$this->assertFileExists($file);
$stage->apply();
$stage->apply();
$this->assertFileDoesNotExist("$active_dir/sites/default/no-copy.txt");
$this->assertFileExists("$active_dir/sites/default/new.txt");
// The ignored files should still be in the active directory.
// The ignored files should still be in the active directory.
foreach ($ignore as $path) {
foreach ($ignore as $path) {
Loading