Skip to content
Snippets Groups Projects
Commit f9c4edec authored by Bernd Oliver Suenderhauf's avatar Bernd Oliver Suenderhauf
Browse files

Issue #3052739 by Pancho: Replace the deprecated drupal_rmdir()

parent 7185e45e
No related branches found
No related tags found
No related merge requests found
......@@ -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.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment