Verified Commit 1b5f6d95 authored by Dave Long's avatar Dave Long
Browse files

test: #3549419 Add permission reset after test writes to file

By: nicxvan
By: berdir
By: mstrelan
By: alexpott
(cherry picked from commit cb176c74)
parent 484b56ab
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -692,7 +692,9 @@ protected function tearDown(): void {
    if ($this->siteDirectory && !str_starts_with($this->siteDirectory, 'vfs://')) {
      // Delete test site directory.
      $callback = function (string $path) {
        if (!is_link($path)) {
          @chmod($path, 0700);
        }
      };
      \Drupal::service('file_system')->deleteRecursive($this->siteDirectory, $callback);
    }