create([
'lyrics' => "foo\rbar\nbaz\r\nqux",
]);
self::assertEquals('foo
bar
baz
qux', $song->lyrics);
}
public function testGettingS3HostedSongs(): void
{
/** @var Song $song */
$song = Song::factory()->create(['path' => 's3://foo/bar']);
self::assertEquals(['bucket' => 'foo', 'key' => 'bar'], $song->s3_params);
}
}