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',
|
|
|
|
'use_last_fm',
|
|
|
|
'use_you_tube',
|
|
|
|
'use_i_tunes',
|
|
|
|
'allow_download',
|
|
|
|
'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
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|