koel/tests/Unit/Models/SongTest.php
2022-07-29 09:04:44 +02:00

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);
}
}