RemoteFileDeleteTest.php

Same filename in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteTest.php
  2. 10 core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteTest.php
  3. 11.x core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteTest.php

Namespace

Drupal\KernelTests\Core\File

File

core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteTest.php

View source
<?php

namespace Drupal\KernelTests\Core\File;


/**
 * Tests the unmanaged file delete function.
 *
 * @group File
 */
class RemoteFileDeleteTest extends FileDeleteTest {
    
    /**
     * Modules to enable.
     *
     * @var array
     */
    public 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() {
        parent::setUp();
        $this->config('system.file')
            ->set('default_scheme', 'dummy-remote')
            ->save();
    }

}

Classes

Title Deprecated Summary
RemoteFileDeleteTest Tests the unmanaged file delete function.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.