repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/AlbumSongTest.php | tests/Feature/AlbumSongTest.php | <?php
namespace Tests\Feature;
use App\Http\Resources\SongResource;
use App\Models\Album;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class AlbumSongTest extends TestCase
{
#[Test]
public function index(): void
{
/** @var Album $album */
$album = Album:... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/SongSearchTest.php | tests/Feature/SongSearchTest.php | <?php
namespace Tests\Feature;
use App\Http\Resources\SongResource;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;
class SongSearchTest extends TestCase
{
public function setUp(): void
{
parent::setUp();
config()->set('scout.d... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/ArtistSongTest.php | tests/Feature/ArtistSongTest.php | <?php
namespace Tests\Feature;
use App\Http\Resources\SongResource;
use App\Models\Artist;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class ArtistSongTest extends TestCase
{
#[Test]
public function index(): void
{
/** @var Artist $artist */
$artist = A... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/PlayCountTest.php | tests/Feature/PlayCountTest.php | <?php
namespace Tests\Feature;
use App\Events\PlaybackStarted;
use App\Models\Interaction;
use App\Models\Song;
use Illuminate\Support\Facades\Event;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;
class PlayCountTest extends TestCase
{
#[Test]
public function stor... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/ArtistAlbumTest.php | tests/Feature/ArtistAlbumTest.php | <?php
namespace Tests\Feature;
use App\Http\Resources\AlbumResource;
use App\Models\Album;
use App\Models\Artist;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class ArtistAlbumTest extends TestCase
{
#[Test]
public function index(): void
{
/** @var Artist $artist */
$artist ... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/InteractionTest.php | tests/Feature/InteractionTest.php | <?php
namespace Tests\Feature;
use App\Events\MultipleSongsLiked;
use App\Events\PlaybackStarted;
use App\Events\SongFavoriteToggled;
use App\Models\Favorite;
use App\Models\Interaction;
use App\Models\Song;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Facades\Event;
use PHPUnit\Framework\Attri... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/RadioStationTest.php | tests/Feature/RadioStationTest.php | <?php
namespace Tests\Feature;
use App\Helpers\Ulid;
use App\Http\Resources\RadioStationResource;
use App\Models\Organization;
use App\Models\RadioStation;
use App\Rules\ValidRadioStationUrl;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_admin;
use function Tests\create_user;
u... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/InitialDataTest.php | tests/Feature/InitialDataTest.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_folder... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/UserInvitationTest.php | tests/Feature/UserInvitationTest.php | <?php
namespace Tests\Feature;
use App\Http\Resources\UserProspectResource;
use App\Mail\UserInvite;
use App\Models\User;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Str;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_admin;
use function Tests\create_manager;
cl... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/AlbumThumbnailTest.php | tests/Feature/AlbumThumbnailTest.php | <?php
namespace Tests\Feature;
use App\Models\Album;
use App\Services\ImageStorage;
use App\Values\ImageWritingConfig;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class AlbumThumbnailTest extends TestCase
{
private ImageStorage|MockInterface $imageStorage;
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/ForgotPasswordTest.php | tests/Feature/ForgotPasswordTest.php | <?php
namespace Tests\Feature;
use App\Services\AuthenticationService;
use Illuminate\Auth\Events\PasswordReset;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Password;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_use... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/PlaylistFolderTest.php | tests/Feature/PlaylistFolderTest.php | <?php
namespace Tests\Feature;
use App\Http\Resources\PlaylistFolderResource;
use App\Models\PlaylistFolder;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_playlist;
use function Tests\create_user;
class PlaylistFolderTest extends TestCase
{
#[Test]
public function list... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/ExcerptSearchTest.php | tests/Feature/ExcerptSearchTest.php | <?php
namespace Tests\Feature;
use App\Http\Resources\AlbumResource;
use App\Http\Resources\ArtistResource;
use App\Http\Resources\PodcastResource;
use App\Http\Resources\SongResource;
use App\Models\Album;
use App\Models\Artist;
use App\Models\Podcast;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use ... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/FetchFavoriteSongsTest.php | tests/Feature/FetchFavoriteSongsTest.php | <?php
namespace Tests\Feature;
use App\Http\Resources\SongResource;
use App\Models\Favorite;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;
class FetchFavoriteSongsTest extends TestCase
{
#[Test]
public function index(): void
{
$us... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/HomeTest.php | tests/Feature/HomeTest.php | <?php
namespace Tests\Feature;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class HomeTest extends TestCase
{
#[Test]
public function renders(): void
{
$this->withoutVite()
->get('/')
->assertOk()
->assertSee('window.ACCEPTED_AUDIO_EXTENSIONS')
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/SongPlayTest.php | tests/Feature/SongPlayTest.php | <?php
namespace Tests\Feature;
use App\Models\Song;
use App\Services\Streamer\Adapters\LocalStreamerAdapter;
use App\Services\Streamer\Adapters\TranscodingStreamerAdapter;
use App\Services\TokenManager;
use App\Values\CompositeToken;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\creat... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/RecentlyPlayedSongTest.php | tests/Feature/RecentlyPlayedSongTest.php | <?php
namespace Tests\Feature;
use App\Http\Resources\SongResource;
use App\Models\Interaction;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;
class RecentlyPlayedSongTest extends TestCase
{
#[Test]
public function index(): void
{
$user = create_user()... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/PlaylistSongTest.php | tests/Feature/PlaylistSongTest.php | <?php
namespace Tests\Feature;
use App\Http\Resources\SongResource;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_playlist;
class PlaylistSongTest extends TestCase
{
#[Test]
public function getNormalPlaylist(): void
{
$playlist = create... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/DownloadTest.php | tests/Feature/DownloadTest.php | <?php
namespace Tests\Feature;
use App\Models\Album;
use App\Models\Artist;
use App\Models\Favorite;
use App\Models\Song;
use App\Services\DownloadService;
use App\Values\Downloadable;
use Illuminate\Database\Eloquent\Collection;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Tests... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/BrandingSettingTest.php | tests/Feature/BrandingSettingTest.php | <?php
namespace Tests\Feature;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_admin;
use function Tests\minimal_base64_encoded_image;
class BrandingSettingTest extends TestCase
{
#[Test]
public function notAccessibleInCommunityLicense(): void
{
$this->putAs(... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/UploadTest.php | tests/Feature/UploadTest.php | <?php
namespace Tests\Feature;
use App\Exceptions\MediaPathNotSetException;
use App\Exceptions\SongUploadFailedException;
use App\Models\Setting;
use Illuminate\Http\Response;
use Illuminate\Http\UploadedFile;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_admin;
use function Te... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/ArtistEventTest.php | tests/Feature/ArtistEventTest.php | <?php
namespace Tests\Feature;
use App\Models\Artist;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class ArtistEventTest extends TestCase
{
#[Test]
public function disabledInCommunityEdition(): void
{
$artist = Artist::factory()->create();
$this->getAs("api/artists/{$artist... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/SongTest.php | tests/Feature/SongTest.php | <?php
namespace Tests\Feature;
use App\Facades\Dispatcher;
use App\Http\Resources\SongResource;
use App\Jobs\DeleteSongFilesJob;
use App\Models\Album;
use App\Models\Artist;
use App\Models\Song;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Bus;
use PHPUnit\Framework\Attributes\Test;
use Tests\Tes... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/EmbedOptionsTest.php | tests/Feature/EmbedOptionsTest.php | <?php
namespace Tests\Feature;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class EmbedOptionsTest extends TestCase
{
#[Test]
public function encrypt(): void
{
$this->post('api/embed-options', [
'theme' => 'cat',
'layout' => 'compact',
'preview' =... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/AlbumInformationTest.php | tests/Feature/AlbumInformationTest.php | <?php
namespace Tests\Feature;
use App\Models\Album;
use App\Services\EncyclopediaService;
use App\Values\Album\AlbumInformation;
use Mockery;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class AlbumInformationTest extends TestCase
{
#[Test]
public function getInformation(): void
{
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/FavoriteTest.php | tests/Feature/FavoriteTest.php | <?php
namespace Tests\Feature;
use App\Events\MultipleSongsLiked;
use App\Events\MultipleSongsUnliked;
use App\Events\SongFavoriteToggled;
use App\Http\Resources\FavoriteResource;
use App\Models\Favorite;
use App\Models\Song;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Facades\Event;
use PHPUn... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/ScrobbleTest.php | tests/Feature/ScrobbleTest.php | <?php
namespace Tests\Feature;
use App\Facades\Dispatcher;
use App\Jobs\ScrobbleJob;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;
class ScrobbleTest extends TestCase
{
#[Test]
public function lastfmScrobble(): void
{
$user = crea... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/UserTest.php | tests/Feature/UserTest.php | <?php
namespace Tests\Feature;
use App\Enums\Acl\Role;
use App\Helpers\Ulid;
use App\Models\Interaction;
use App\Models\User;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Hash;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_admin;
use function Tests\cre... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/EmbedTest.php | tests/Feature/EmbedTest.php | <?php
namespace Tests\Feature;
use App\Http\Resources\EmbedOptionsResource;
use App\Http\Resources\EmbedResource;
use App\Models\Embed;
use App\Models\Song;
use App\Values\EmbedOptions;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_playlist;
class EmbedTest extends TestCase
{
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/MediaPathSettingTest.php | tests/Feature/MediaPathSettingTest.php | <?php
namespace Tests\Feature;
use App\Models\Setting;
use App\Services\Scanners\DirectoryScanner;
use App\Values\Scanning\ScanResultCollection;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_admin;
class MediaPathSettingTest extends TestCase
{
pr... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/AuthTest.php | tests/Feature/AuthTest.php | <?php
namespace Tests\Feature;
use App\Services\AuthenticationService;
use Illuminate\Support\Facades\Hash;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;
class AuthTest extends TestCase
{
#[Test]
public function logIn(): void
{
create_user([
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/Demo/DemoSessionTest.php | tests/Feature/Demo/DemoSessionTest.php | <?php
namespace Tests\Feature\Demo;
use Jaybizzle\CrawlerDetect\CrawlerDetect;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class DemoSessionTest extends TestCase
{
public function setUp(): void
{
parent::setUp();
config(['koel.misc.demo' => true]);
$this->followRedirec... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/ArtistTest.php | tests/Feature/KoelPlus/ArtistTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Http\Resources\ArtistResource;
use App\Models\Artist;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_admin;
use function Tests\create_user;
class ArtistTest extends PlusTestCase
{
#[Test]
public function updateAsOwner(... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/ProfileTest.php | tests/Feature/KoelPlus/ProfileTest.php | <?php
namespace Tests\Feature\KoelPlus;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_user;
use function Tests\minimal_base64_encoded_image;
class ProfileTest extends PlusTestCase
{
#[Test]
public function updateSsoProfile(): void
{
$user = create_user(... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/AlbumTest.php | tests/Feature/KoelPlus/AlbumTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Http\Resources\AlbumResource;
use App\Models\Album;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_admin;
use function Tests\create_user;
class AlbumTest extends PlusTestCase
{
#[Test]
public function updateAsOwner(): ... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/PlaylistTest.php | tests/Feature/KoelPlus/PlaylistTest.php | <?php
namespace Tests\Feature\KoelPlus;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_playlist;
use function Tests\create_user;
class PlaylistTest extends PlusTestCase
{
#[Test]
public function collaboratorCannotUpdatePlaylist(): void
{
$playlist = crea... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/SongVisibilityTest.php | tests/Feature/KoelPlus/SongVisibilityTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_user;
class SongVisibilityTest extends PlusTestCase
{
#[Test]
public function makingSongPublic(): void
{
$currentUser = create_user();
$an... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/InteractionTest.php | tests/Feature/KoelPlus/InteractionTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Events\MultipleSongsLiked;
use App\Events\MultipleSongsUnliked;
use App\Events\SongFavoriteToggled;
use App\Models\Song;
use Illuminate\Support\Facades\Event;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_user;
class Interact... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/UserInvitationTest.php | tests/Feature/KoelPlus/UserInvitationTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Http\Resources\UserProspectResource;
use App\Mail\UserInvite;
use Illuminate\Support\Facades\Mail;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_admin;
class UserInvitationTest extends PlusTestCase
{
#[Test]
public fu... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/PlaylistFolderTest.php | tests/Feature/KoelPlus/PlaylistFolderTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Models\PlaylistFolder;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_playlist;
use function Tests\create_user;
class PlaylistFolderTest extends PlusTestCase
{
#[Test]
public function collaboratorPuttingPlaylistIntoThe... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/AuthorizeDropboxTest.php | tests/Feature/KoelPlus/AuthorizeDropboxTest.php | <?php
namespace Tests\Feature\KoelPlus;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
class AuthorizeDropboxTest extends PlusTestCase
{
#[Test]
public function authorize(): void
{
$this->get('/dropbox/authorize/foo')
->assertRedirect(
"https://www.drop... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/ProxyAuthTest.php | tests/Feature/KoelPlus/ProxyAuthTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Models\User;
use Laravel\Sanctum\PersonalAccessToken;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_user;
class ProxyAuthTest extends PlusTestCase
{
public function setUp(): void
{
parent::setUp();
co... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/SongPlayTest.php | tests/Feature/KoelPlus/SongPlayTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Models\Song;
use App\Services\Streamer\Adapters\LocalStreamerAdapter;
use App\Services\TokenManager;
use App\Values\CompositeToken;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_user;
use function Tests\test_path;
class SongP... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/PlaylistSongTest.php | tests/Feature/KoelPlus/PlaylistSongTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Http\Resources\CollaborativeSongResource;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_playlist;
use function Tests\create_user;
class PlaylistSongTest extends PlusTestCase
{
#[Test]
public funct... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/DownloadTest.php | tests/Feature/KoelPlus/DownloadTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Models\Song;
use App\Services\DownloadService;
use App\Values\Downloadable;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_user;
use function Tests\test_path;
class DownloadTest extends PlusTestCase
{
#[Test]
public fu... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/BrandingSettingTest.php | tests/Feature/KoelPlus/BrandingSettingTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Models\Setting;
use Illuminate\Support\Str;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_admin;
use function Tests\create_user;
use function Tests\minimal_base64_encoded_image;
class BrandingSettingTest extends PlusTestCase
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/UploadTest.php | tests/Feature/KoelPlus/UploadTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Models\Setting;
use App\Models\Song;
use Illuminate\Http\UploadedFile;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_user;
use function Tests\test_path;
class UploadTest extends PlusTestCase
{
private UploadedFile $file;
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/ArtistEventTest.php | tests/Feature/KoelPlus/ArtistEventTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Http\Integrations\IPinfo\Requests\GetLiteDataRequest;
use App\Http\Integrations\Ticketmaster\Requests\AttractionSearchRequest;
use App\Http\Integrations\Ticketmaster\Requests\EventSearchRequest;
use App\Http\Resources\LiveEventResource;
use App\Models\Artist;
use App\Va... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/SongTest.php | tests/Feature/KoelPlus/SongTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_user;
class SongTest extends PlusTestCase
{
#[Test]
public function showSongPolicy(): void
{
$user = create_user();
/** @var Song $public... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/ThemeTest.php | tests/Feature/KoelPlus/ThemeTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Http\Resources\ThemeResource;
use App\Models\Theme;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_user;
use function Tests\minimal_base64_encoded_image;
class ThemeTest extends PlusTestCase
{
#[Test]
public function l... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/FavoriteTest.php | tests/Feature/KoelPlus/FavoriteTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Models\Album;
use App\Models\Artist;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
class FavoriteTest extends PlusTestCase
{
#[Test]
public function toggleIsProhibitedIfSongIsNotAccessible(): void
{
/** @var Son... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/UserTest.php | tests/Feature/KoelPlus/UserTest.php | <?php
namespace Tests\Feature\KoelPlus;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_admin;
class UserTest extends PlusTestCase
{
#[Test]
public function creatingManagersIsOk(): void
{
$this->postAs('api/users', [
'name' => 'Manager',
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/EmbedTest.php | tests/Feature/KoelPlus/EmbedTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Http\Resources\EmbedOptionsResource;
use App\Http\Resources\EmbedResource;
use App\Http\Resources\ThemeResource;
use App\Models\Embed;
use App\Models\Theme;
use App\Values\EmbedOptions;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
class EmbedTest exte... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/PlaylistCollaborationTest.php | tests/Feature/KoelPlus/PlaylistCollaborationTest.php | <?php
namespace Tests\Feature\KoelPlus;
use App\Http\Resources\PlaylistCollaborationTokenResource;
use App\Http\Resources\PlaylistResource;
use App\Models\PlaylistCollaborationToken;
use App\Models\PlaylistFolder;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_playlist;
use ... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/MediaBrowser/FetchRecursiveFolderSongsTest.php | tests/Feature/KoelPlus/MediaBrowser/FetchRecursiveFolderSongsTest.php | <?php
namespace Tests\Feature\KoelPlus\MediaBrowser;
use App\Models\Folder;
use App\Models\Setting;
use App\Models\Song;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
class FetchRecursiveFolderSongsTest extends PlusTestCase
{
public function setUp(): void
{
parent::setUp();
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/MediaBrowser/PaginateFolderSongsTest.php | tests/Feature/KoelPlus/MediaBrowser/PaginateFolderSongsTest.php | <?php
namespace Tests\Feature\KoelPlus\MediaBrowser;
use App\Http\Resources\SongFileResource;
use App\Models\Folder;
use App\Models\Song;
use Illuminate\Database\Eloquent\Collection;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
class PaginateFolderSongsTest extends PlusTestCase
{
#[Test]
pu... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/MediaBrowser/FetchFolderSongsTest.php | tests/Feature/KoelPlus/MediaBrowser/FetchFolderSongsTest.php | <?php
namespace Tests\Feature\KoelPlus\MediaBrowser;
use App\Http\Resources\SongFileResource;
use App\Models\Folder;
use App\Models\Setting;
use App\Models\Song;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Arr;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
class FetchFolderSo... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/MediaBrowser/FetchSubfoldersTest.php | tests/Feature/KoelPlus/MediaBrowser/FetchSubfoldersTest.php | <?php
namespace Tests\Feature\KoelPlus\MediaBrowser;
use App\Http\Resources\FolderResource;
use App\Models\Folder;
use App\Models\Setting;
use Illuminate\Database\Eloquent\Collection;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
class FetchSubfoldersTest extends PlusTestCase
{
public function s... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/KoelPlus/SSO/GoogleTest.php | tests/Feature/KoelPlus/SSO/GoogleTest.php | <?php
namespace Tests\Feature\KoelPlus\SSO;
use Illuminate\Support\Str;
use Laravel\Socialite\Facades\Socialite;
use Laravel\Socialite\Two\User as GoogleUser;
use Mockery;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_user;
class GoogleTest extends PlusTestCase
{
#[Tes... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/ObjectStorage/S3Test.php | tests/Feature/ObjectStorage/S3Test.php | <?php
namespace Tests\Feature\ObjectStorage;
use App\Models\Song;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_admin;
class S3Test extends TestCase
{
use WithoutMiddleware;
public function setUp(): void
{
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/ApplicationTest.php | tests/Unit/ApplicationTest.php | <?php
namespace Tests\Unit;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class ApplicationTest extends TestCase
{
#[Test]
public function staticUrlsWithoutCdnAreConstructedCorrectly(): void
{
config(['koel.cdn.url' => '']);
self::assertSame('http://localhost/', static_url()... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Jobs/DeleteTranscodeFilesJobTest.php | tests/Unit/Jobs/DeleteTranscodeFilesJobTest.php | <?php
namespace Tests\Unit\Jobs;
use App\Enums\SongStorageType;
use App\Jobs\DeleteTranscodeFilesJob;
use App\Services\Transcoding\CloudTranscodingStrategy;
use App\Services\Transcoding\LocalTranscodingStrategy;
use App\Values\Transcoding\TranscodeFileInfo;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Jobs/GenerateAlbumThumbnailJobTest.php | tests/Unit/Jobs/GenerateAlbumThumbnailJobTest.php | <?php
namespace Tests\Unit\Jobs;
use App\Jobs\GenerateAlbumThumbnailJob;
use App\Models\Album;
use App\Services\AlbumService;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class GenerateAlbumThumbnailJobTest extends TestCase
{
#[Test]
public function handle(): void
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Jobs/ScrobbleJobTest.php | tests/Unit/Jobs/ScrobbleJobTest.php | <?php
namespace Tests\Unit\Jobs;
use App\Jobs\ScrobbleJob;
use App\Models\Song;
use App\Services\LastfmService;
use Mockery;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;
class ScrobbleJobTest extends TestCase
{
#[Test]
public function handle(): void
{
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Jobs/DeleteSongFilesJobTest.php | tests/Unit/Jobs/DeleteSongFilesJobTest.php | <?php
namespace Tests\Unit\Jobs;
use App\Enums\SongStorageType;
use App\Jobs\DeleteSongFilesJob;
use App\Services\SongStorages\SongStorage;
use App\Values\Song\SongFileInfo;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class DeleteSongFilesJobTest extends TestCas... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Values/EmbedOptionsTest.php | tests/Unit/Values/EmbedOptionsTest.php | <?php
namespace Tests\Unit\Values;
use App\Values\EmbedOptions;
use Illuminate\Http\Request;
use Mockery;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class EmbedOptionsTest extends TestCase
{
#[Test]
public function makeDefault(): void
{
$encrypted = (string) EmbedOptions::make();
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Http/Middleware/ForceHttpsTest.php | tests/Unit/Http/Middleware/ForceHttpsTest.php | <?php
namespace Tests\Unit\Http\Middleware;
use App\Http\Middleware\ForceHttps;
use Illuminate\Http\Request;
use Illuminate\Routing\UrlGenerator;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Symfony\Component\HttpFoundation\Response;
use Tests\TestCase;
class ForceHttpsTest exte... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Http/Integrations/Spotify/SpotifyClientTest.php | tests/Unit/Http/Integrations/Spotify/SpotifyClientTest.php | <?php
namespace Tests\Unit\Http\Integrations\Spotify;
use App\Exceptions\SpotifyIntegrationDisabledException;
use App\Http\Integrations\Spotify\SpotifyClient;
use Illuminate\Cache\Repository as Cache;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use SpotifyWebAPI\Session as SpotifySe... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Listeners/DeletePodcastIfNoSubscribersTest.php | tests/Unit/Listeners/DeletePodcastIfNoSubscribersTest.php | <?php
namespace Tests\Unit\Listeners;
use App\Events\UserUnsubscribedFromPodcast;
use App\Listeners\DeletePodcastIfNoSubscribers;
use App\Models\Podcast;
use App\Services\PodcastService;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Listeners/WriteSyncLogTest.php | tests/Unit/Listeners/WriteSyncLogTest.php | <?php
namespace Tests\Unit\Listeners;
use App\Events\MediaScanCompleted;
use App\Listeners\WriteScanLog;
use App\Values\Scanning\ScanResult;
use App\Values\Scanning\ScanResultCollection;
use Carbon\Carbon;
use Illuminate\Support\Facades\File;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Te... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Listeners/MakePlaylistSongsPublicTest.php | tests/Unit/Listeners/MakePlaylistSongsPublicTest.php | <?php
namespace Tests\Unit\Listeners;
use App\Events\NewPlaylistCollaboratorJoined;
use App\Listeners\MakePlaylistSongsPublic;
use App\Models\PlaylistCollaborationToken;
use App\Services\PlaylistService;
use Mockery;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;
class Ma... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Listeners/UpdateLastfmNowPlayingTest.php | tests/Unit/Listeners/UpdateLastfmNowPlayingTest.php | <?php
namespace Tests\Unit\Listeners;
use App\Events\PlaybackStarted;
use App\Listeners\UpdateLastfmNowPlaying;
use App\Models\Song;
use App\Services\LastfmService;
use Mockery;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;
class UpdateLastfmNowPlayingTest extends TestCa... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Listeners/LoveTrackOnLastFmTest.php | tests/Unit/Listeners/LoveTrackOnLastFmTest.php | <?php
namespace Tests\Unit\Listeners;
use App\Events\SongFavoriteToggled;
use App\Listeners\LoveTrackOnLastfm;
use App\Models\Song;
use App\Services\LastfmService;
use Mockery;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;
class LoveTrackOnLastFmTest extends TestCase
{
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Rules/ValidSmartPlaylistRulePayloadTest.php | tests/Unit/Rules/ValidSmartPlaylistRulePayloadTest.php | <?php
namespace Tests\Unit\Rules;
use App\Rules\ValidSmartPlaylistRulePayload;
use Exception;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class ValidSmartPlaylistRulePayloadTest extends TestCase
{
/** @return array<mixed> */
public static function... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Rules/ValidRadioStationUrlTest.php | tests/Unit/Rules/ValidRadioStationUrlTest.php | <?php
namespace Tests\Unit\Rules;
use App\Rules\ValidRadioStationUrl;
use Illuminate\Support\Facades\Http;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class ValidRadioStationUrlTest extends TestCase
{
#[Test]
public function valid(): void
{
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/SvgSanitizerTest.php | tests/Unit/Services/SvgSanitizerTest.php | <?php
namespace Tests\Unit\Services;
use App\Services\SvgSanitizer;
use enshrined\svgSanitize\Sanitizer;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class SvgSanitizerTest extends TestCase
{
private Sanitizer|MockInterface $sanitizer;
private SvgSanitize... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/ImageStorageTest.php | tests/Unit/Services/ImageStorageTest.php | <?php
namespace Tests\Unit\Services;
use App\Helpers\Ulid;
use App\Services\ImageStorage;
use App\Services\ImageWriter;
use App\Services\SvgSanitizer;
use Illuminate\Support\Facades\File;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class ImageStorageTest extends... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/PlaylistFolderServiceTest.php | tests/Unit/Services/PlaylistFolderServiceTest.php | <?php
namespace Tests\Unit\Services;
use App\Models\Playlist;
use App\Models\PlaylistFolder;
use App\Services\PlaylistFolderService;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_playlist;
use function Tests\create_playlists;
use function Tests\create_user;
class PlaylistFolde... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/AclTest.php | tests/Unit/Services/AclTest.php | <?php
namespace Tests\Unit\Services;
use App\Enums\Acl\Role;
use App\Enums\PermissionableResourceType;
use App\Models\Contracts\Permissionable;
use App\Services\Acl;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Gate;
use Mockery;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Fra... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/UploadServiceTest.php | tests/Unit/Services/UploadServiceTest.php | <?php
namespace Tests\Unit\Services;
use App\Enums\SongStorageType;
use App\Exceptions\SongUploadFailedException;
use App\Models\Song;
use App\Services\Scanners\FileScanner;
use App\Services\SongService;
use App\Services\SongStorages\Contracts\MustDeleteTemporaryLocalFileAfterUpload;
use App\Services\SongStorages\Son... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/SpotifyServiceTest.php | tests/Unit/Services/SpotifyServiceTest.php | <?php
namespace Tests\Unit\Services;
use App\Http\Integrations\Spotify\SpotifyClient;
use App\Models\Album;
use App\Models\Artist;
use App\Services\SpotifyService;
use Illuminate\Support\Facades\File;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Test... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/AuthenticationServiceTest.php | tests/Unit/Services/AuthenticationServiceTest.php | <?php
namespace Tests\Unit\Services;
use App\Repositories\UserRepository;
use App\Services\AuthenticationService;
use App\Services\TokenManager;
use Illuminate\Auth\Passwords\PasswordBroker;
use Illuminate\Support\Facades\Password;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/SimpleLrcReaderTest.php | tests/Unit/Services/SimpleLrcReaderTest.php | <?php
namespace Tests\Unit\Services;
use App\Services\SimpleLrcReader;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Str;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\test_path;
class SimpleLrcReaderTest extends TestCase
{
private SimpleLrcReader $reader;
publ... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/EncyclopediaServiceTest.php | tests/Unit/Services/EncyclopediaServiceTest.php | <?php
namespace Tests\Unit\Services;
use App\Models\Album;
use App\Models\Artist;
use App\Services\Contracts\Encyclopedia;
use App\Services\EncyclopediaService;
use App\Services\ImageStorage;
use App\Services\LastfmService;
use App\Services\SpotifyService;
use App\Values\Album\AlbumInformation;
use App\Values\Artist\... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/Transcoding/TranscoderTest.php | tests/Unit/Services/Transcoding/TranscoderTest.php | <?php
namespace Tests\Unit\Services\Transcoding;
use App\Services\Transcoding\Transcoder;
use Illuminate\Process\PendingProcess;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Process;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class TranscoderTest extends TestCase
{
private ... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/Transcoding/TranscodingStrategyFactoryTest.php | tests/Unit/Services/Transcoding/TranscodingStrategyFactoryTest.php | <?php
namespace Tests\Unit\Services\Transcoding;
use App\Enums\SongStorageType;
use App\Services\Transcoding\CloudTranscodingStrategy;
use App\Services\Transcoding\LocalTranscodingStrategy;
use App\Services\Transcoding\SftpTranscodingStrategy;
use App\Services\Transcoding\TranscodeStrategyFactory;
use PHPUnit\Framewo... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/SongStorages/S3LambdaStorageTest.php | tests/Unit/Services/SongStorages/S3LambdaStorageTest.php | <?php
namespace Tests\Unit\Services\SongStorages;
use App\Models\Song;
use App\Repositories\SongRepository;
use App\Repositories\UserRepository;
use App\Services\AlbumService;
use App\Services\SongStorages\S3LambdaStorage;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCa... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/SongStorages/CloudStorageFactoryTest.php | tests/Unit/Services/SongStorages/CloudStorageFactoryTest.php | <?php
namespace Tests\Unit\Services\SongStorages;
use App\Enums\SongStorageType;
use App\Exceptions\NonCloudStorageException;
use App\Services\SongStorages\CloudStorageFactory;
use App\Services\SongStorages\DropboxStorage;
use App\Services\SongStorages\S3CompatibleStorage;
use App\Services\SongStorages\S3LambdaStorag... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Services/Scanners/ScannerCacheStrategyTest.php | tests/Unit/Services/Scanners/ScannerCacheStrategyTest.php | <?php
namespace Tests\Unit\Services\Scanners;
use App\Services\Scanners\ScannerCacheStrategy;
use PHPUnit\Framework\Attributes\Test;
use RuntimeException;
use Tests\TestCase;
class ScannerCacheStrategyTest extends TestCase
{
private ScannerCacheStrategy $cache;
public function setUp(): void
{
pa... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/KoelPlus/Values/EmbedOptionsTest.php | tests/Unit/KoelPlus/Values/EmbedOptionsTest.php | <?php
namespace Tests\Unit\KoelPlus\Values;
use App\Values\EmbedOptions;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
class EmbedOptionsTest extends PlusTestCase
{
#[Test]
public function themeAndPreviewCanBeCustomizedForCommunityLicense(): void
{
$encrypted = (string) EmbedOpti... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/KoelPlus/Models/ArtistTest.php | tests/Unit/KoelPlus/Models/ArtistTest.php | <?php
namespace Tests\Unit\KoelPlus\Models;
use App\Models\Artist;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
use function Tests\create_user;
class ArtistTest extends PlusTestCase
{
#[Test]
public function getOrCreate(): void
{
/** @var Artist $artist */
$artist = Art... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/KoelPlus/Models/AlbumTest.php | tests/Unit/KoelPlus/Models/AlbumTest.php | <?php
namespace Tests\Unit\KoelPlus\Models;
use App\Models\Album;
use App\Models\Artist;
use PHPUnit\Framework\Attributes\Test;
use Tests\PlusTestCase;
class AlbumTest extends PlusTestCase
{
#[Test]
public function getOrCreate(): void
{
/** @var Artist $artist */
$artist = Artist::factory... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Models/ArtistTest.php | tests/Unit/Models/ArtistTest.php | <?php
namespace Tests\Unit\Models;
use App\Models\Artist;
use Illuminate\Support\Facades\File;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
use function Tests\create_user;
use function Tests\test_path;
class ArtistTest extends TestCase
{
#[Test]
p... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Models/AlbumTest.php | tests/Unit/Models/AlbumTest.php | <?php
namespace Tests\Unit\Models;
use App\Models\Album;
use App\Models\Artist;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class AlbumTest extends TestCase
{
#[Test]
public function existingAlbumCanBeRetrievedUsingArtistAndName(): void
{
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Models/SettingTest.php | tests/Unit/Models/SettingTest.php | <?php
namespace Tests\Unit\Models;
use App\Models\Setting;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class SettingTest extends TestCase
{
#[Test]
public function setKeyValuePair(): void
{
Setting::set('foo', 'bar');
$this->assertDatabaseHas(Setting::class, [
... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Models/SongTest.php | tests/Unit/Models/SongTest.php | <?php
namespace Tests\Unit\Models;
use App\Models\Genre;
use App\Models\Song;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class SongTest extends TestCase
{
#[Test]
public function retrievedLyricsPreserveTimestamps(): void
{
/** @var So... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Pipelines/Encyclopedia/GetArtistWikidataIdUsingMbidTest.php | tests/Unit/Pipelines/Encyclopedia/GetArtistWikidataIdUsingMbidTest.php | <?php
namespace Tests\Unit\Pipelines\Encyclopedia;
use App\Http\Integrations\MusicBrainz\MusicBrainzConnector;
use App\Http\Integrations\MusicBrainz\Requests\GetArtistUrlRelationshipsRequest;
use App\Pipelines\Encyclopedia\GetArtistWikidataIdUsingMbid;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Faca... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Pipelines/Encyclopedia/GetAlbumWikidataIdUsingReleaseGroupMbidTest.php | tests/Unit/Pipelines/Encyclopedia/GetAlbumWikidataIdUsingReleaseGroupMbidTest.php | <?php
namespace Tests\Unit\Pipelines\Encyclopedia;
use App\Http\Integrations\MusicBrainz\MusicBrainzConnector;
use App\Http\Integrations\MusicBrainz\Requests\GetReleaseGroupUrlRelationshipsRequest;
use App\Pipelines\Encyclopedia\GetAlbumWikidataIdUsingReleaseGroupMbid;
use Illuminate\Support\Facades\Cache;
use Illumi... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Pipelines/Encyclopedia/GetWikipediaPageSummaryUsingPageTitleTest.php | tests/Unit/Pipelines/Encyclopedia/GetWikipediaPageSummaryUsingPageTitleTest.php | <?php
namespace Tests\Unit\Pipelines\Encyclopedia;
use App\Http\Integrations\Wikipedia\Requests\GetPageSummaryRequest;
use App\Http\Integrations\Wikipedia\WikipediaConnector;
use App\Pipelines\Encyclopedia\GetWikipediaPageSummaryUsingPageTitle;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\File... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
koel/koel | https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Unit/Pipelines/Encyclopedia/GetWikipediaPageTitleUsingWikidataIdTest.php | tests/Unit/Pipelines/Encyclopedia/GetWikipediaPageTitleUsingWikidataIdTest.php | <?php
namespace Tests\Unit\Pipelines\Encyclopedia;
use App\Http\Integrations\Wikidata\Requests\GetEntityDataRequest;
use App\Http\Integrations\Wikidata\WikidataConnector;
use App\Pipelines\Encyclopedia\GetWikipediaPageTitleUsingWikidataId;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\File;
use... | php | MIT | add9401a4b9a904bb1b9f679bc674ad1570ff20e | 2026-01-04T15:02:34.446708Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.