2024-02-23 18:36:02 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests\Unit\Services\SongStorages;
|
|
|
|
|
|
|
|
use App\Exceptions\KoelPlusRequiredException;
|
2024-04-18 11:27:07 +00:00
|
|
|
use App\Models\Song;
|
2024-02-23 18:36:02 +00:00
|
|
|
use App\Services\SongStorages\DropboxStorage;
|
|
|
|
use Tests\TestCase;
|
|
|
|
|
|
|
|
class DropboxStorageTest extends TestCase
|
|
|
|
{
|
|
|
|
public function testSupported(): void
|
|
|
|
{
|
2024-03-22 20:34:32 +00:00
|
|
|
$this->expectException(KoelPlusRequiredException::class);
|
2024-04-18 11:27:07 +00:00
|
|
|
|
|
|
|
/** @var Song $song */
|
|
|
|
$song = Song::factory()->create();
|
|
|
|
|
|
|
|
/** @var DropboxStorage $service */
|
|
|
|
$service = app(DropboxStorage::class);
|
|
|
|
$service->getSongPresignedUrl($song);
|
2024-02-23 18:36:02 +00:00
|
|
|
}
|
|
|
|
}
|