diff --git a/src/Core/Destination/DirectoryDestination.php b/src/Core/Destination/DirectoryDestination.php index ea3d0ea..cbe07da 100644 --- a/src/Core/Destination/DirectoryDestination.php +++ b/src/Core/Destination/DirectoryDestination.php @@ -233,10 +233,11 @@ protected function getAllFileNames() { // Read the list of files from the directory. $dir = $this->confGet('directory'); + $scheme = /** @var \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager */ $stream_wrapper_manager = \Drupal::service('stream_wrapper_manager'); - $scheme = $stream_wrapper_manager->isValidScheme($dir); + $scheme = $stream_wrapper_manager->getScheme($dir); // Ensure the stream is configured. if (!$stream_wrapper_manager->isValidScheme($scheme)) { diff --git a/tests/src/Functional/BackupMigrateQuickBackupTest.php b/tests/src/Functional/BackupMigrateQuickBackupTest.php index 5fdec3d..c0def10 100644 --- a/tests/src/Functional/BackupMigrateQuickBackupTest.php +++ b/tests/src/Functional/BackupMigrateQuickBackupTest.php @@ -38,7 +38,10 @@ public function setUp() { 'perform backup', 'access backup files', 'administer backup and migrate', + // Required for the file admin page. + 'administer site configuration', ])); + $this->drupalGet('admin/config/media/file-system'); } /**