You are here

RemoteFileDeleteRecursiveTest.php in Drupal 10

File

core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteRecursiveTest.php
View source
<?php

namespace Drupal\KernelTests\Core\File;


/**
 * Tests the unmanaged file delete recursive function.
 *
 * @group File
 */
class RemoteFileDeleteRecursiveTest extends FileDeleteRecursiveTest {

  /**
   * Modules to enable.
   *
   * @var array
   */
  protected static $modules = [
    'file_test',
  ];

  /**
   * A stream wrapper scheme to register for the test.
   *
   * @var string
   */
  protected $scheme = 'dummy-remote';

  /**
   * A fully-qualified stream wrapper class name to register for the test.
   *
   * @var string
   */
  protected $classname = 'Drupal\\file_test\\StreamWrapper\\DummyRemoteStreamWrapper';
  protected function setUp() : void {
    parent::setUp();
    $this
      ->config('system.file')
      ->set('default_scheme', 'dummy-remote')
      ->save();
  }

}

Classes

Namesort descending Description
RemoteFileDeleteRecursiveTest Tests the unmanaged file delete recursive function.