function TestDiskSpaceValidator::stat

File

core/modules/package_manager/tests/src/Kernel/PackageManagerKernelTestBase.php, line 500

Class

TestDiskSpaceValidator
A test version of the disk space validator to bypass system-level functions.

Namespace

Drupal\Tests\package_manager\Kernel

Code

protected function stat(string $path) : array {
    return [
        'dev' => $this->sharedDisk ? 'disk' : uniqid(),
    ];
}

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