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