koel/tests/Feature/DataTest.php

32 lines
722 B
PHP
Raw Normal View History

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',
'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',
'queue_state' => [
'songs',
'current_song',
'playback_position',
],
2022-07-26 20:27:32 +00:00
]);
}
}