mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
43 lines
1 KiB
PHP
43 lines
1 KiB
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use PHPUnit\Framework\Attributes\Test;
|
|
use Tests\TestCase;
|
|
|
|
class InitialDataTest extends TestCase
|
|
{
|
|
#[Test]
|
|
public function index(): void
|
|
{
|
|
$this->getAs('/api/data')->assertJsonStructure([
|
|
'settings',
|
|
'playlists',
|
|
'playlist_folders',
|
|
'current_user',
|
|
'uses_last_fm',
|
|
'uses_you_tube',
|
|
'uses_i_tunes',
|
|
'allows_download',
|
|
'supports_transcoding',
|
|
'cdn_url',
|
|
'current_version',
|
|
'latest_version',
|
|
'song_count',
|
|
'song_length',
|
|
'queue_state' => [
|
|
'songs',
|
|
'current_song',
|
|
'playback_position',
|
|
],
|
|
'koel_plus' => [
|
|
'active',
|
|
'short_key',
|
|
'customer_name',
|
|
'customer_email',
|
|
'product_id',
|
|
],
|
|
'supports_batch_downloading',
|
|
]);
|
|
}
|
|
}
|