mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
17 lines
364 B
PHP
17 lines
364 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\Models;
|
|
|
|
use App\Models\Song;
|
|
use Tests\TestCase;
|
|
|
|
class SongTest extends TestCase
|
|
{
|
|
public function testGettingS3HostedSongs(): void
|
|
{
|
|
/** @var Song $song */
|
|
$song = Song::factory()->create(['path' => 's3://foo/bar']);
|
|
|
|
self::assertEquals(['bucket' => 'foo', 'key' => 'bar'], $song->s3_params);
|
|
}
|
|
}
|