mirror of
https://github.com/koel/koel
synced 2024-11-28 15:00:42 +00:00
20 lines
444 B
PHP
20 lines
444 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\V6;
|
|
|
|
use App\Models\Interaction;
|
|
use App\Models\User;
|
|
|
|
class RecentlyPlayedSongTest extends TestCase
|
|
{
|
|
public function testIndex(): void
|
|
{
|
|
/** @var User $user */
|
|
$user = User::factory()->create();
|
|
|
|
Interaction::factory(5)->for($user)->create();
|
|
|
|
$this->getAs('api/songs/recently-played', $user)
|
|
->assertJsonStructure(['*' => SongTest::JSON_STRUCTURE]);
|
|
}
|
|
}
|