Files
pterodactyl-panel/tests/Support/Fakes/FakeBackupManager.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

24 lines
519 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Tests\Support\Fakes;
use League\Flysystem\FilesystemAdapter;
use Pterodactyl\Extensions\Backups\BackupManager;
class FakeBackupManager extends BackupManager
{
/** @var list<string|null> */
public array $adapterCalls = [];
public function __construct(private FakeS3Filesystem $filesystem) {}
public function adapter(?string $name = null): FilesystemAdapter
{
$this->adapterCalls[] = $name;
return $this->filesystem;
}
}