mirror of
https://github.com/koel/koel
synced 2024-12-18 16:44:03 +00:00
23 lines
565 B
PHP
23 lines
565 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\Services\SongStorages;
|
|
|
|
use App\Exceptions\KoelPlusRequiredException;
|
|
use App\Models\Song;
|
|
use App\Services\SongStorages\DropboxStorage;
|
|
use Tests\TestCase;
|
|
|
|
class DropboxStorageTest extends TestCase
|
|
{
|
|
public function testSupported(): void
|
|
{
|
|
$this->expectException(KoelPlusRequiredException::class);
|
|
|
|
/** @var Song $song */
|
|
$song = Song::factory()->create();
|
|
|
|
/** @var DropboxStorage $service */
|
|
$service = app(DropboxStorage::class);
|
|
$service->getSongPresignedUrl($song);
|
|
}
|
|
}
|