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
|
|
|
|
2024-01-09 18:34:40 +00:00
|
|
|
use Tests\TestCase;
|
|
|
|
|
2024-01-11 12:41:33 +00:00
|
|
|
class InitialDataTest extends TestCase
|
2022-07-26 20:27:32 +00:00
|
|
|
{
|
|
|
|
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',
|
|
|
|
],
|
2024-01-08 16:59:05 +00:00
|
|
|
'koel_plus' => [
|
|
|
|
'active',
|
|
|
|
'short_key',
|
|
|
|
'customer_name',
|
|
|
|
'customer_email',
|
2024-01-18 11:13:05 +00:00
|
|
|
'product_id',
|
2024-01-08 16:59:05 +00:00
|
|
|
],
|
2024-08-29 17:54:58 +00:00
|
|
|
'supports_batch_downloading',
|
2022-07-26 20:27:32 +00:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|