mirror of
https://github.com/koel/koel
synced 2024-12-19 17:13:09 +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);
|
|
}
|
|
}
|