From f9c4edec461f214cc2471f1ece694a578057bf31 Mon Sep 17 00:00:00 2001
From: Bernd Oliver Suenderhauf <bos@suenderhauf.de>
Date: Mon, 3 Jun 2019 13:27:11 +0200
Subject: [PATCH] Issue #3052739 by Pancho: Replace the deprecated
 drupal_rmdir()

---
 tests/src/Functional/FillPdfSettingsFormTest.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/src/Functional/FillPdfSettingsFormTest.php b/tests/src/Functional/FillPdfSettingsFormTest.php
index 8391ba0..f377d58 100644
--- a/tests/src/Functional/FillPdfSettingsFormTest.php
+++ b/tests/src/Functional/FillPdfSettingsFormTest.php
@@ -149,7 +149,9 @@ class FillPdfSettingsFormTest extends BrowserTestBase {
     // Now delete the directory and replace it with a file with the same name,
     // so the directory can't be recreated. Try saving again and verify an error
     // is set.
-    drupal_rmdir($directory);
+    /** @var \Drupal\Core\File\FileSystemInterface $file_system */
+    $file_system = $this->container->get('file_system');
+    $file_system->rmdir($directory);
     file_unmanaged_copy('public://.htaccess', $directory);
     $this->drupalPostForm(NULL, [], 'Save configuration');
     $this->assertSession()->pageTextNotContains('The configuration options have been saved.');
-- 
GitLab