koel/tests/Feature/DataTest.php

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