mirror of
https://github.com/koel/koel
synced 2024-12-24 03:23:06 +00:00
17 lines
331 B
PHP
17 lines
331 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Feature\V6;
|
||
|
|
||
|
use App\Models\Song;
|
||
|
|
||
|
class SongSearchTest extends TestCase
|
||
|
{
|
||
|
public function testSearch(): void
|
||
|
{
|
||
|
Song::factory(10)->create(['title' => 'A Foo Song']);
|
||
|
|
||
|
$this->getAs('api/search/songs?q=foo')
|
||
|
->assertJsonStructure(['*' => SongTest::JSON_STRUCTURE]);
|
||
|
}
|
||
|
}
|