mirror of
https://github.com/koel/koel
synced 2024-12-22 02:23:14 +00:00
31 lines
726 B
PHP
31 lines
726 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
class DataTest extends TestCase
|
|
{
|
|
public function testIndex(): 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',
|
|
],
|
|
]);
|
|
}
|
|
}
|