2022-07-26 20:27:32 +00:00
|
|
|
<?php
|
|
|
|
|
2023-06-05 21:46:41 +00:00
|
|
|
namespace Tests\Feature;
|
2022-07-26 20:27:32 +00:00
|
|
|
|
|
|
|
class DataTest extends TestCase
|
|
|
|
{
|
|
|
|
public function testIndex(): void
|
|
|
|
{
|
2022-07-27 08:49:33 +00:00
|
|
|
$this->getAs('/api/data')->assertJsonStructure([
|
2022-07-26 20:27:32 +00:00
|
|
|
'settings',
|
|
|
|
'playlists',
|
2022-08-10 14:56:01 +00:00
|
|
|
'playlist_folders',
|
2022-07-26 20:27:32 +00:00
|
|
|
'current_user',
|
2024-01-04 11:35:36 +00:00
|
|
|
'uses_last_fm',
|
|
|
|
'uses_you_tube',
|
|
|
|
'uses_i_tunes',
|
|
|
|
'allows_download',
|
2022-07-26 20:27:32 +00:00
|
|
|
'supports_transcoding',
|
|
|
|
'cdn_url',
|
|
|
|
'current_version',
|
|
|
|
'latest_version',
|
|
|
|
'song_count',
|
|
|
|
'song_length',
|
2024-01-01 11:40:21 +00:00
|
|
|
'queue_state' => [
|
|
|
|
'songs',
|
|
|
|
'current_song',
|
|
|
|
'playback_position',
|
|
|
|
],
|
2022-07-26 20:27:32 +00:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|