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/app/Pipelines/Encyclopedia/GetMbidForArtist.php
app/Pipelines/Encyclopedia/GetMbidForArtist.php
<?php namespace App\Pipelines\Encyclopedia; use App\Http\Integrations\MusicBrainz\MusicBrainzConnector; use App\Http\Integrations\MusicBrainz\Requests\SearchForArtistRequest; use Closure; class GetMbidForArtist { use TriesRemember; public function __construct(private readonly MusicBrainzConnector $connector...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Pipelines/Encyclopedia/GetWikipediaPageSummaryUsingPageTitle.php
app/Pipelines/Encyclopedia/GetWikipediaPageSummaryUsingPageTitle.php
<?php namespace App\Pipelines\Encyclopedia; use App\Http\Integrations\Wikipedia\Requests\GetPageSummaryRequest; use App\Http\Integrations\Wikipedia\WikipediaConnector; use Closure; class GetWikipediaPageSummaryUsingPageTitle { use TriesRemember; public function __construct(private readonly WikipediaConnecto...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Pipelines/Encyclopedia/GetAlbumTracksUsingMbid.php
app/Pipelines/Encyclopedia/GetAlbumTracksUsingMbid.php
<?php namespace App\Pipelines\Encyclopedia; use App\Http\Integrations\MusicBrainz\MusicBrainzConnector; use App\Http\Integrations\MusicBrainz\Requests\GetRecordingsRequest; use Closure; use Illuminate\Support\Arr; class GetAlbumTracksUsingMbid { use TriesRemember; public function __construct(private readonl...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Pipelines/Encyclopedia/GetWikipediaPageTitleUsingWikidataId.php
app/Pipelines/Encyclopedia/GetWikipediaPageTitleUsingWikidataId.php
<?php namespace App\Pipelines\Encyclopedia; use App\Http\Integrations\Wikidata\Requests\GetEntityDataRequest; use App\Http\Integrations\Wikidata\WikidataConnector; use Closure; class GetWikipediaPageTitleUsingWikidataId { use TriesRemember; public function __construct(private readonly WikidataConnector $con...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Pipelines/Encyclopedia/GetReleaseAndReleaseGroupMbidsForAlbum.php
app/Pipelines/Encyclopedia/GetReleaseAndReleaseGroupMbidsForAlbum.php
<?php namespace App\Pipelines\Encyclopedia; use App\Http\Integrations\MusicBrainz\MusicBrainzConnector; use App\Http\Integrations\MusicBrainz\Requests\SearchForReleaseRequest; use Closure; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Cache; class GetReleaseAndReleaseGroupMbidsForAlbum { use TriesRe...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Pipelines/Encyclopedia/TriesRemember.php
app/Pipelines/Encyclopedia/TriesRemember.php
<?php namespace App\Pipelines\Encyclopedia; use Closure; use DateTimeInterface; use Illuminate\Support\Facades\Cache; trait TriesRemember { private function tryRemember(string $key, DateTimeInterface|int $ttl, Closure $callback): mixed { return Cache::has($key) ? Cache::get($key) ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Responses/BroadcastableResponse.php
app/Responses/BroadcastableResponse.php
<?php namespace App\Responses; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Contracts\Events\ShouldDispatchAfterCommit; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Http\JsonResponse; /** * A broadcastable response is a class that can be used to return a JSON response in a sta...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Responses/SongUploadResponse.php
app/Responses/SongUploadResponse.php
<?php namespace App\Responses; use App\Http\Resources\AlbumResource; use App\Http\Resources\SongResource; use App\Models\Album; use App\Models\Song; use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\PrivateChannel; class SongUploadResponse extends BroadcastableResponse { protected function __const...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Events/NewPlaylistCollaboratorJoined.php
app/Events/NewPlaylistCollaboratorJoined.php
<?php namespace App\Events; use App\Models\PlaylistCollaborationToken; use App\Models\User; class NewPlaylistCollaboratorJoined extends Event { public function __construct(public User $collaborator, public PlaylistCollaborationToken $token) { } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Events/LibraryChanged.php
app/Events/LibraryChanged.php
<?php namespace App\Events; class LibraryChanged extends Event { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Events/MultipleSongsLiked.php
app/Events/MultipleSongsLiked.php
<?php namespace App\Events; use App\Models\Song; use App\Models\User; use Illuminate\Support\Collection; class MultipleSongsLiked extends Event { /** * @param Collection<Song> $songs */ public function __construct(public readonly Collection $songs, public readonly User $user) { } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Events/MediaScanCompleted.php
app/Events/MediaScanCompleted.php
<?php namespace App\Events; use App\Values\Scanning\ScanResultCollection; class MediaScanCompleted extends Event { public function __construct(public ScanResultCollection $results) { } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Events/MultipleSongsUnliked.php
app/Events/MultipleSongsUnliked.php
<?php namespace App\Events; use App\Models\Song; use App\Models\User; use Illuminate\Support\Collection; class MultipleSongsUnliked extends Event { /** * @param Collection<Song> $songs */ public function __construct(public readonly Collection $songs, public readonly User $user) { } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Events/Event.php
app/Events/Event.php
<?php namespace App\Events; use Illuminate\Broadcasting\Channel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Contracts\Events\ShouldDispatchAfterCommit; use Illuminate\Queue\SerializesModels; abstract class Event implements ShouldBroadcast, ShouldDispatchAfterCommit { use SerializesMode...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Events/PlaybackStarted.php
app/Events/PlaybackStarted.php
<?php namespace App\Events; use App\Models\Song; use App\Models\User; class PlaybackStarted extends Event { public function __construct(public Song $song, public User $user) { } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Events/SongFavoriteToggled.php
app/Events/SongFavoriteToggled.php
<?php namespace App\Events; use App\Models\Song; use App\Models\User; class SongFavoriteToggled extends Event { public function __construct(public readonly Song $song, public bool $favorite, public readonly User $user) { } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Events/UserUnsubscribedFromPodcast.php
app/Events/UserUnsubscribedFromPodcast.php
<?php namespace App\Events; use App\Models\Podcast; use App\Models\User; class UserUnsubscribedFromPodcast extends Event { public function __construct(public readonly User $user, public readonly Podcast $podcast) { } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Policies/PlaylistFolderPolicy.php
app/Policies/PlaylistFolderPolicy.php
<?php namespace App\Policies; use App\Models\PlaylistFolder; use App\Models\User; class PlaylistFolderPolicy { public function own(User $user, PlaylistFolder $folder): bool { return $folder->ownedBy($user); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Policies/LicensePolicy.php
app/Policies/LicensePolicy.php
<?php namespace App\Policies; use App\Enums\Acl\Permission; use App\Facades\License; use App\Models\User; class LicensePolicy { public function activate(User $user): bool { return $user->hasPermissionTo(Permission::MANAGE_SETTINGS) && License::isCommunity(); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Policies/FolderPolicy.php
app/Policies/FolderPolicy.php
<?php namespace App\Policies; use App\Models\Folder; use App\Models\User; use Illuminate\Auth\Access\Response; class FolderPolicy { public function browse(User $user, Folder $folder): Response { // We simply deny access if the folder is an upload folder and the user is not the uploader. retur...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Policies/UserPolicy.php
app/Policies/UserPolicy.php
<?php namespace App\Policies; use App\Enums\Acl\Permission; use App\Facades\License; use App\Models\User; class UserPolicy { public function manage(User $currentUser): bool { return $currentUser->hasPermissionTo(Permission::MANAGE_USERS); } public function update(User $currentUser, User $use...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Policies/SongPolicy.php
app/Policies/SongPolicy.php
<?php namespace App\Policies; use App\Enums\Acl\Permission; use App\Facades\License; use App\Models\Song; use App\Models\User; class SongPolicy { public function access(User $user, Song $song): bool { return License::isCommunity() || $song->accessibleBy($user); } public function own(User $us...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Policies/AlbumPolicy.php
app/Policies/AlbumPolicy.php
<?php namespace App\Policies; use App\Enums\Acl\Permission; use App\Facades\License; use App\Models\Album; use App\Models\User; class AlbumPolicy { public function access(User $user, Album $album): bool { return License::isCommunity() || $album->belongsToUser($user); } /** * If the user...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Policies/PlaylistPolicy.php
app/Policies/PlaylistPolicy.php
<?php namespace App\Policies; use App\Facades\License; use App\Models\Playlist; use App\Models\User; class PlaylistPolicy { public function access(User $user, Playlist $playlist): bool { return $this->own($user, $playlist) || $playlist->hasCollaborator($user); } public function own(User $use...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Policies/PodcastPolicy.php
app/Policies/PodcastPolicy.php
<?php namespace App\Policies; use App\Models\Podcast; use App\Models\User; class PodcastPolicy { public function access(User $user, Podcast $podcast): bool { return $user->subscribedToPodcast($podcast); } public function view(User $user, Podcast $podcast): bool { return $user->su...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Policies/ArtistPolicy.php
app/Policies/ArtistPolicy.php
<?php namespace App\Policies; use App\Enums\Acl\Permission; use App\Facades\License; use App\Models\Artist; use App\Models\User; class ArtistPolicy { public function access(User $user, Artist $artist): bool { return License::isCommunity() || $artist->belongsToUser($user); } public function u...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Policies/ThemePolicy.php
app/Policies/ThemePolicy.php
<?php namespace App\Policies; use App\Models\Theme; use App\Models\User; class ThemePolicy { public function own(User $user, Theme $theme): bool { return $user->id === $theme->user_id; } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Policies/RadioStationPolicy.php
app/Policies/RadioStationPolicy.php
<?php namespace App\Policies; use App\Enums\Acl\Permission; use App\Models\RadioStation; use App\Models\User; class RadioStationPolicy { public function access(User $user, RadioStation $station): bool { return $station->user_id === $user->id || $station->is_public; } public function edit(Use...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/bootstrap/app.php
bootstrap/app.php
<?php use App\Http\Middleware\AudioAuthenticate; use App\Http\Middleware\ForceHttps; use App\Http\Middleware\HandleDemoMode; use App\Http\Middleware\ObjectStorageAuthenticate; use App\Http\Middleware\RestrictPlusFeatures; use App\Providers\RouteServiceProvider; use Illuminate\Auth\AuthenticationException; use Illumina...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/bootstrap/autoload.php
bootstrap/autoload.php
<?php /* |-------------------------------------------------------------------------- | Register The Composer Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader | for our application. We just need to utilize it...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/bootstrap/providers.php
bootstrap/providers.php
<?php use App\Providers\AppServiceProvider; use App\Providers\AuthServiceProvider; use App\Providers\BroadcastServiceProvider; use App\Providers\DownloadServiceProvider; use App\Providers\EventServiceProvider; use App\Providers\ITunesServiceProvider; use App\Providers\LicenseServiceProvider; use App\Providers\MacroPro...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/TestCase.php
tests/TestCase.php
<?php namespace Tests; use App\Facades\License; use App\Helpers\Ulid; use App\Helpers\Uuid; use App\Models\Album; use App\Services\License\CommunityLicenseService; use App\Services\MediaBrowser; use Illuminate\Filesystem\Filesystem; use Illuminate\Foundation\Testing\LazilyRefreshDatabase; use Illuminate\Foundation\Te...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Helpers.php
tests/Helpers.php
<?php namespace Tests; use App\Models\Playlist; use App\Models\User; use Illuminate\Database\Eloquent\Collection; use Illuminate\Support\Facades\File; function create_user(array $attributes = []): User { return User::factory()->create($attributes); } function create_admin(array $attributes = []): User { ret...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/PlusTestCase.php
tests/PlusTestCase.php
<?php namespace Tests; use App\Facades\License; use Tests\Fakes\FakePlusLicenseService; use Tests\TestCase as BaseTestCase; class PlusTestCase extends BaseTestCase { public static function enablePlusLicense(): void { License::swap(app(FakePlusLicenseService::class)); } public function setUp(...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/TicketmasterServiceTest.php
tests/Integration/TicketmasterServiceTest.php
<?php namespace Tests\Integration; use App\Http\Integrations\IPinfo\Requests\GetLiteDataRequest; use App\Http\Integrations\Ticketmaster\Requests\AttractionSearchRequest; use App\Http\Integrations\Ticketmaster\Requests\EventSearchRequest; use App\Models\Artist; use App\Services\TicketmasterService; use App\Values\Tick...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Values/EpisodePlayableTest.php
tests/Integration/Values/EpisodePlayableTest.php
<?php namespace Tests\Integration\Values; use App\Models\Song; use App\Values\Podcast\EpisodePlayable; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Http; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; class EpisodePlayableTest extends TestCase { #[Test] public function cre...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Casts/UserPreferencesCastTest.php
tests/Integration/Casts/UserPreferencesCastTest.php
<?php namespace Tests\Integration\Casts; use App\Values\User\UserPreferences; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_user; class UserPreferencesCastTest extends TestCase { #[Test] public function cast(): void { $user = create_user([ 'pref...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Listeners/DeleteNonExistingRecordsPostSyncTest.php
tests/Integration/Listeners/DeleteNonExistingRecordsPostSyncTest.php
<?php namespace Tests\Integration\Listeners; use App\Enums\SongStorageType; use App\Events\MediaScanCompleted; use App\Listeners\DeleteNonExistingRecordsPostScan; use App\Models\Song; use App\Values\Scanning\ScanResult; use App\Values\Scanning\ScanResultCollection; use Illuminate\Database\Eloquent\Collection; use PHP...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Observers/AlbumObserverTest.php
tests/Integration/Observers/AlbumObserverTest.php
<?php namespace Tests\Integration\Observers; use App\Facades\Dispatcher; use App\Jobs\GenerateAlbumThumbnailJob; use App\Models\Album; use App\Observers\AlbumObserver; use Mockery; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; class AlbumObserverTest extends TestCase { #[Test] public function di...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/SettingServiceTest.php
tests/Integration/Services/SettingServiceTest.php
<?php namespace Tests\Integration\Services; use App\Models\Setting; use App\Services\SettingService; use App\Values\Branding; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; class SettingServiceTest extends TestCase { private SettingService $service; 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/Integration/Services/SmartPlaylistServiceTest.php
tests/Integration/Services/SmartPlaylistServiceTest.php
<?php namespace Tests\Integration\Services; use App\Helpers\Uuid; use App\Models\Album; use App\Models\Artist; use App\Models\Genre; use App\Models\Interaction; use App\Models\Song; use App\Models\User; use App\Services\SmartPlaylistService; use Illuminate\Database\Eloquent\Collection; use PHPUnit\Framework\Attribute...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/MusicBrainzServiceTest.php
tests/Integration/Services/MusicBrainzServiceTest.php
<?php namespace Tests\Integration\Services; use App\Models\Album; use App\Models\Artist; use App\Pipelines\Encyclopedia\GetAlbumTracksUsingMbid; use App\Pipelines\Encyclopedia\GetAlbumWikidataIdUsingReleaseGroupMbid; use App\Pipelines\Encyclopedia\GetArtistWikidataIdUsingMbid; use App\Pipelines\Encyclopedia\GetMbidFo...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/PodcastServiceTest.php
tests/Integration/Services/PodcastServiceTest.php
<?php namespace Tests\Integration\Services; use App\Events\UserUnsubscribedFromPodcast; use App\Exceptions\UserAlreadySubscribedToPodcastException; use App\Models\Podcast; use App\Models\PodcastUserPivot; use App\Models\Song; use App\Services\PodcastService; use GuzzleHttp\Client; use GuzzleHttp\Handler\MockHandler; ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/LastfmServiceTest.php
tests/Integration/Services/LastfmServiceTest.php
<?php namespace Tests\Integration\Services; use App\Http\Integrations\Lastfm\Requests\GetAlbumInfoRequest; use App\Http\Integrations\Lastfm\Requests\GetArtistInfoRequest; use App\Http\Integrations\Lastfm\Requests\ScrobbleRequest; use App\Http\Integrations\Lastfm\Requests\ToggleLoveTrackRequest; use App\Http\Integrati...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/QueueServiceTest.php
tests/Integration/Services/QueueServiceTest.php
<?php namespace Tests\Integration\Services; use App\Models\QueueState; use App\Models\Song; use App\Services\QueueService; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_user; class QueueServiceTest extends TestCase { private QueueService $service; public function setU...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/UserInvitationServiceTest.php
tests/Integration/Services/UserInvitationServiceTest.php
<?php namespace Tests\Integration\Services; use App\Enums\Acl\Role; use App\Exceptions\InvitationNotFoundException; use App\Mail\UserInvite; use App\Models\User; use App\Services\UserInvitationService; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Mail; use Illuminate\Support\Str; use PHPUnit\Fr...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/PlaylistServiceTest.php
tests/Integration/Services/PlaylistServiceTest.php
<?php namespace Tests\Integration\Services; use App\Enums\Placement; use App\Models\PlaylistFolder; use App\Models\Podcast; use App\Models\Song; use App\Services\PlaylistService; use App\Values\Playlist\PlaylistCreateData; use App\Values\Playlist\PlaylistUpdateData; use App\Values\SmartPlaylist\SmartPlaylistRuleGroup...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/AlbumServiceTest.php
tests/Integration/Services/AlbumServiceTest.php
<?php namespace Tests\Integration\Services; use App\Exceptions\AlbumNameConflictException; use App\Helpers\Ulid; use App\Models\Album; use App\Models\Song; use App\Services\AlbumService; use App\Services\ImageStorage; use App\Values\Album\AlbumUpdateData; use Mockery\MockInterface; use PHPUnit\Framework\Attributes\Te...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/ApplicationInformationServiceTest.php
tests/Integration/Services/ApplicationInformationServiceTest.php
<?php namespace Tests\Integration\Services; use App\Services\ApplicationInformationService; use GuzzleHttp\Client; use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\HandlerStack; use GuzzleHttp\Psr7\Response; use Illuminate\Support\Facades\File; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use functio...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/InteractionServiceTest.php
tests/Integration/Services/InteractionServiceTest.php
<?php namespace Tests\Integration\Services; use App\Models\Interaction; use App\Services\InteractionService; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; class InteractionServiceTest extends TestCase { private InteractionService $interactionService; public function setUp(): void { ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/TokenManagerTest.php
tests/Integration/Services/TokenManagerTest.php
<?php namespace Tests\Integration\Services; use App\Services\TokenManager; use Illuminate\Support\Facades\Cache; use Laravel\Sanctum\PersonalAccessToken; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_user; class TokenManagerTest extends TestCase { private TokenManager $tok...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/EmbedServiceTest.php
tests/Integration/Services/EmbedServiceTest.php
<?php namespace Tests\Integration\Services; use App\Models\Album; use App\Models\Artist; use App\Models\Playlist; use App\Models\Song; use App\Services\EmbedService; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_user; class EmbedS...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/DispatcherTest.php
tests/Integration/Services/DispatcherTest.php
<?php namespace Tests\Integration\Services; use App\Services\Dispatcher; use Illuminate\Support\Facades\Bus; use PHPUnit\Framework\Attributes\Test; use Tests\Fakes\FakeJob; use Tests\TestCase; class DispatcherTest extends TestCase { private string $queueConfig; private string $broadcastingConfig; public...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/ArtistServiceTest.php
tests/Integration/Services/ArtistServiceTest.php
<?php namespace Tests\Integration\Services; use App\Exceptions\ArtistNameConflictException; use App\Helpers\Ulid; use App\Models\Album; use App\Models\Artist; use App\Models\Song; use App\Services\ArtistService; use App\Values\Artist\ArtistUpdateData; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use fu...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/MediaBrowserTest.php
tests/Integration/Services/MediaBrowserTest.php
<?php namespace Tests\Integration\Services; use App\Enums\SongStorageType; use App\Models\Folder; use App\Models\Setting; use App\Models\Song; use App\Services\MediaBrowser; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; class MediaBrowserTest extends TestCase { private MediaBrowser $browser; pu...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/AuthenticationServiceTest.php
tests/Integration/Services/AuthenticationServiceTest.php
<?php namespace Tests\Integration\Services; 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 Tes...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/YouTubeServiceTest.php
tests/Integration/Services/YouTubeServiceTest.php
<?php namespace Tests\Integration\Services; use App\Http\Integrations\YouTube\Requests\SearchVideosRequest; use App\Models\Artist; use App\Models\Song; use App\Services\YouTubeService; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\File; use PHPUnit\Framework\Attributes\Test; use Saloon\Http\Fak...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/FavoriteServiceTest.php
tests/Integration/Services/FavoriteServiceTest.php
<?php namespace Tests\Integration\Services; use App\Events\MultipleSongsLiked; use App\Events\MultipleSongsUnliked; use App\Events\SongFavoriteToggled; use App\Models\Album; use App\Models\Favorite; use App\Models\Song; use App\Services\FavoriteService; use Illuminate\Database\Eloquent\Collection; use Illuminate\Supp...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/LicenseServiceTest.php
tests/Integration/Services/LicenseServiceTest.php
<?php namespace Tests\Integration\Services; use App\Exceptions\FailedToActivateLicenseException; use App\Http\Integrations\LemonSqueezy\Requests\ActivateLicenseRequest; use App\Http\Integrations\LemonSqueezy\Requests\DeactivateLicenseRequest; use App\Http\Integrations\LemonSqueezy\Requests\ValidateLicenseRequest; use...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/RadioServiceTest.php
tests/Integration/Services/RadioServiceTest.php
<?php namespace Tests\Integration\Services; use App\Models\RadioStation; use App\Services\RadioService; use App\Values\Radio\RadioStationCreateData; use App\Values\Radio\RadioStationUpdateData; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_user; class RadioServiceTest extends ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/ITunesServiceTest.php
tests/Integration/Services/ITunesServiceTest.php
<?php namespace Tests\Integration\Services; use App\Http\Integrations\iTunes\Requests\GetTrackRequest; use App\Models\Album; use App\Models\Artist; use App\Services\ITunesService; use Illuminate\Support\Facades\Cache; use PHPUnit\Framework\Attributes\Test; use Saloon\Http\Faking\MockResponse; use Saloon\Laravel\Saloo...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/ThemeServiceTest.php
tests/Integration/Services/ThemeServiceTest.php
<?php namespace Tests\Integration\Services; use App\Models\Theme; use App\Services\ThemeService; use App\Values\Theme\ThemeCreateData; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_user; use function Tests\minimal_base64_encoded_image; class ThemeServiceTest extends TestCase {...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/SongServiceTest.php
tests/Integration/Services/SongServiceTest.php
<?php namespace Tests\Integration\Services; use App\Facades\Dispatcher; use App\Jobs\DeleteSongFilesJob; use App\Jobs\DeleteTranscodeFilesJob; use App\Jobs\ExtractSongFolderStructureJob; use App\Models\Album; use App\Models\Artist; use App\Models\Setting; use App\Models\Song; use App\Models\Transcode; use App\Service...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/UserServiceTest.php
tests/Integration/Services/UserServiceTest.php
<?php namespace Tests\Integration\Services; use App\Enums\Acl\Role; use App\Exceptions\UserProspectUpdateDeniedException; use App\Services\UserService; use App\Values\User\UserCreateData; use App\Values\User\UserUpdateData; use Illuminate\Support\Facades\Hash; 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/Integration/Services/Transcoding/LocalTranscodingStrategyTest.php
tests/Integration/Services/Transcoding/LocalTranscodingStrategyTest.php
<?php namespace Tests\Integration\Services\Transcoding; use App\Helpers\Ulid; use App\Models\Song; use App\Models\Transcode; use App\Services\Transcoding\LocalTranscodingStrategy; use App\Services\Transcoding\Transcoder; use Illuminate\Support\Facades\File; use Mockery\MockInterface; use PHPUnit\Framework\Attributes\...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/Transcoding/SfpTranscodingStrategyTest.php
tests/Integration/Services/Transcoding/SfpTranscodingStrategyTest.php
<?php namespace Tests\Integration\Services\Transcoding; use App\Enums\SongStorageType; use App\Helpers\Ulid; use App\Models\Song; use App\Models\Transcode; use App\Services\SongStorages\SftpStorage; use App\Services\Transcoding\SftpTranscodingStrategy; use App\Services\Transcoding\Transcoder; use Illuminate\Support\F...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/Transcoding/CloudTranscodingStrategyTest.php
tests/Integration/Services/Transcoding/CloudTranscodingStrategyTest.php
<?php namespace Tests\Integration\Services\Transcoding; use App\Enums\SongStorageType; use App\Helpers\Ulid; use App\Models\Song; use App\Models\Transcode; use App\Services\SongStorages\S3CompatibleStorage; use App\Services\Transcoding\CloudTranscodingStrategy; use App\Services\Transcoding\Transcoder; use Illuminate\...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/SongStorages/LocalStorageTest.php
tests/Integration/Services/SongStorages/LocalStorageTest.php
<?php namespace Tests\Integration\Services\SongStorages; use App\Exceptions\MediaPathNotSetException; use App\Models\Setting; use App\Services\SongStorages\LocalStorage; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\File; use Mockery; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/Streamer/StreamerTest.php
tests/Integration/Services/Streamer/StreamerTest.php
<?php namespace Tests\Integration\Services\Streamer; use App\Enums\SongStorageType; use App\Exceptions\KoelPlusRequiredException; use App\Models\Song; use App\Services\Streamer\Adapters\LocalStreamerAdapter; use App\Services\Streamer\Adapters\PhpStreamerAdapter; use App\Services\Streamer\Adapters\PodcastStreamerAdapt...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/Scanners/FileScannerTest.php
tests/Integration/Services/Scanners/FileScannerTest.php
<?php namespace Tests\Integration\Services\Scanners; use App\Helpers\Ulid; use App\Models\Setting; use App\Services\Scanners\FileScanner; use getID3; use Illuminate\Support\Facades\File; use Mockery; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\test_path; class FileScannerTest exten...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/Scanners/DirectoryScannerTest.php
tests/Integration/Services/Scanners/DirectoryScannerTest.php
<?php namespace Tests\Integration\Services\Scanners; use App\Events\MediaScanCompleted; use App\Facades\Dispatcher; use App\Jobs\ExtractSongFolderStructureJob; use App\Models\Album; use App\Models\Artist; use App\Models\Setting; use App\Models\Song; use App\Services\Scanners\DirectoryScanner; use App\Values\Scanning\...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Services/Scanners/WatchRecordScannerTest.php
tests/Integration/Services/Scanners/WatchRecordScannerTest.php
<?php namespace Tests\Integration\Services\Scanners; use App\Events\MediaScanCompleted; use App\Models\Setting; use App\Models\Song; use App\Services\Scanners\DirectoryScanner; use App\Services\Scanners\WatchRecordScanner; use App\Values\Scanning\ScanConfiguration; use App\Values\WatchRecord\InotifyWatchRecord; use I...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/KoelPlus/Services/SettingServiceTest.php
tests/Integration/KoelPlus/Services/SettingServiceTest.php
<?php namespace Tests\Integration\KoelPlus\Services; use App\Models\Setting; use App\Services\SettingService; use App\Values\Branding; use PHPUnit\Framework\Attributes\Test; use Tests\PlusTestCase; class SettingServiceTest extends PlusTestCase { private SettingService $service; public function setUp(): void...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/KoelPlus/Services/PlaylistCollaborationServiceTest.php
tests/Integration/KoelPlus/Services/PlaylistCollaborationServiceTest.php
<?php namespace Tests\Integration\KoelPlus\Services; use App\Events\NewPlaylistCollaboratorJoined; use App\Exceptions\CannotRemoveOwnerFromPlaylistException; use App\Exceptions\NotAPlaylistCollaboratorException; use App\Exceptions\OperationNotApplicableForSmartPlaylistException; use App\Exceptions\PlaylistCollaborati...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/KoelPlus/Services/TestingDropboxStorage.php
tests/Integration/KoelPlus/Services/TestingDropboxStorage.php
<?php namespace Tests\Integration\KoelPlus\Services; use Illuminate\Support\Facades\Http; trait TestingDropboxStorage { private static function mockDropboxRefreshAccessTokenCall(string $token = 'free-bird', int $expiresIn = 3600): void { Http::preventStrayRequests(); Http::fake([ ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/KoelPlus/Services/UserServiceTest.php
tests/Integration/KoelPlus/Services/UserServiceTest.php
<?php namespace Tests\Integration\KoelPlus\Services; use App\Enums\Acl\Role; use App\Models\User; use App\Services\UserService; use App\Values\User\SsoUser; use App\Values\User\UserCreateData; use App\Values\User\UserUpdateData; use Illuminate\Support\Facades\Hash; use Laravel\Socialite\Two\User as SocialiteUser; use...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/KoelPlus/Services/SongStorages/DropboxStorageTest.php
tests/Integration/KoelPlus/Services/SongStorages/DropboxStorageTest.php
<?php namespace Tests\Integration\KoelPlus\Services\SongStorages; use App\Filesystems\DropboxFilesystem; use App\Helpers\Ulid; use App\Models\Song; use App\Services\SongStorages\DropboxStorage; use App\Values\UploadReference; use Illuminate\Http\Client\Request; use Illuminate\Support\Facades\Cache; use Illuminate\Sup...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/KoelPlus/Services/SongStorages/S3CompatibleStorageTest.php
tests/Integration/KoelPlus/Services/SongStorages/S3CompatibleStorageTest.php
<?php namespace Tests\Integration\KoelPlus\Services\SongStorages; use App\Helpers\Ulid; use App\Services\SongStorages\S3CompatibleStorage; use App\Values\UploadReference; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; 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/Integration/KoelPlus/Services/SongStorages/SftpStorageTest.php
tests/Integration/KoelPlus/Services/SongStorages/SftpStorageTest.php
<?php namespace Tests\Integration\KoelPlus\Services\SongStorages; use App\Helpers\Ulid; use App\Services\SongStorages\SftpStorage; use App\Values\UploadReference; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; use PHPUnit\Framework\Attributes\Test; use Tests\P...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/KoelPlus/Services/Streamer/StreamerTest.php
tests/Integration/KoelPlus/Services/Streamer/StreamerTest.php
<?php namespace Tests\Integration\KoelPlus\Services\Streamer; use App\Enums\SongStorageType; use App\Models\Song; use App\Services\Streamer\Adapters\DropboxStreamerAdapter; use App\Services\Streamer\Adapters\LocalStreamerAdapter; use App\Services\Streamer\Adapters\S3CompatibleStreamerAdapter; use App\Services\Streame...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/KoelPlus/Enums/SongStorageTypeTest.php
tests/Integration/KoelPlus/Enums/SongStorageTypeTest.php
<?php namespace Tests\Integration\KoelPlus\Enums; use App\Enums\SongStorageType; use PHPUnit\Framework\Attributes\Test; use Tests\PlusTestCase; class SongStorageTypeTest extends PlusTestCase { #[Test] public function supported(): void { self::assertTrue(collect(SongStorageType::cases())->every( ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/KoelPlus/Repositories/FolderRepositoryTest.php
tests/Integration/KoelPlus/Repositories/FolderRepositoryTest.php
<?php namespace Tests\Integration\KoelPlus\Repositories; use App\Models\Folder; use App\Repositories\FolderRepository; use PHPUnit\Framework\Attributes\Test; use Tests\PlusTestCase; use function Tests\create_user; class FolderRepositoryTest extends PlusTestCase { private FolderRepository $repository; publi...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Geolocation/IPinfoServiceTest.php
tests/Integration/Geolocation/IPinfoServiceTest.php
<?php namespace Tests\Integration\Geolocation; use App\Http\Integrations\IPinfo\Requests\GetLiteDataRequest; use App\Services\Geolocation\IPinfoService; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\File; use PHPUnit\Framework\Attributes\Test; use Saloon\Http\Faking\MockResponse; use Saloon\Lar...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Enums/SongStorageTypeTest.php
tests/Integration/Enums/SongStorageTypeTest.php
<?php namespace Tests\Integration\Enums; use App\Enums\SongStorageType; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; class SongStorageTypeTest extends TestCase { #[Test] public function supported(): void { self::assertTrue(SongStorageType::LOCAL->supported()); self::assertTr...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Models/SongZipArchiveTest.php
tests/Integration/Models/SongZipArchiveTest.php
<?php namespace Tests\Integration\Models; use App\Models\Song; use App\Models\SongZipArchive; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\test_path; class SongZipArchiveTest extends TestCase { #[Test] public function addSongIntoArchive(): void { /** @var Song $s...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Integration/Repositories/SongRepositoryTest.php
tests/Integration/Repositories/SongRepositoryTest.php
<?php namespace Tests\Integration\Repositories; use App\Models\Song; use App\Repositories\SongRepository; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; class SongRepositoryTest extends TestCase { private SongRepository $songRepository; 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/Fakes/FakePlusLicenseService.php
tests/Fakes/FakePlusLicenseService.php
<?php namespace Tests\Fakes; use App\Exceptions\MethodNotImplementedException; use App\Models\License; use App\Services\License\Contracts\LicenseServiceInterface; use App\Values\License\LicenseStatus; class FakePlusLicenseService implements LicenseServiceInterface { public function activate(string $key): License...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Fakes/FakeJob.php
tests/Fakes/FakeJob.php
<?php namespace Tests\Fakes; use Illuminate\Contracts\Queue\ShouldQueue; class FakeJob implements ShouldQueue { public function handle(): string { return 'Job executed'; } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/QueueTest.php
tests/Feature/QueueTest.php
<?php namespace Tests\Feature; use App\Http\Resources\SongResource; use App\Models\QueueState; use App\Models\Song; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_user; class QueueTest extends TestCase { public const QUEUE_STATE_JSON_STRUCTURE = [ 'current_song', ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/EpisodeTest.php
tests/Feature/EpisodeTest.php
<?php namespace Tests\Feature; use App\Http\Resources\SongResource; use App\Models\Song; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; class EpisodeTest extends TestCase { #[Test] public function fetchEpisode(): void { /** @var Song $episode */ $episode = Song::factory()->asE...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/ArtistTest.php
tests/Feature/ArtistTest.php
<?php namespace Tests\Feature; use App\Helpers\Ulid; use App\Http\Resources\ArtistResource; use App\Models\Artist; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_admin; use function Tests\create_user; use function Tests\minimal_base64_encoded_image; class ArtistTest extends Tes...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/GenreTest.php
tests/Feature/GenreTest.php
<?php namespace Tests\Feature; use App\Http\Resources\GenreResource; use App\Http\Resources\SongResource; use App\Models\Genre; use App\Models\Song; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; class GenreTest extends TestCase { #[Test] public function getAllGenres(): void { /** @va...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/YouTubeTest.php
tests/Feature/YouTubeTest.php
<?php namespace Tests\Feature; use App\Models\Song; use App\Services\YouTubeService; use Mockery; use Mockery\MockInterface; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; class YouTubeTest extends TestCase { private MockInterface $youTubeService; public function setUp(): void { pare...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/OverviewTest.php
tests/Feature/OverviewTest.php
<?php namespace Tests\Feature; use App\Http\Resources\AlbumResource; use App\Http\Resources\ArtistResource; use App\Http\Resources\SongResource; use App\Models\Interaction; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_user; class OverviewTest extends TestCase { #[Test] ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/ProfileTest.php
tests/Feature/ProfileTest.php
<?php namespace Tests\Feature; use Illuminate\Support\Facades\Hash; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_user; use function Tests\minimal_base64_encoded_image; class ProfileTest extends TestCase { #[Test] public function updateProfileRequiresCurrentPassword():...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/ArtistInformationTest.php
tests/Feature/ArtistInformationTest.php
<?php namespace Tests\Feature; use App\Models\Artist; use App\Services\EncyclopediaService; use App\Values\Artist\ArtistInformation; use Mockery; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; class ArtistInformationTest 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/LastfmTest.php
tests/Feature/LastfmTest.php
<?php namespace Tests\Feature; use App\Services\LastfmService; use App\Services\TokenManager; use Laravel\Sanctum\NewAccessToken; use Laravel\Sanctum\PersonalAccessToken; use Mockery; use Mockery\MockInterface; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_user; class LastfmTe...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/AlbumTest.php
tests/Feature/AlbumTest.php
<?php namespace Tests\Feature; use App\Helpers\Ulid; use App\Http\Resources\AlbumResource; use App\Models\Album; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_admin; use function Tests\create_user; use function Tests\minimal_base64_encoded_image; class AlbumTest extends TestCa...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/PlaylistTest.php
tests/Feature/PlaylistTest.php
<?php namespace Tests\Feature; use App\Helpers\Ulid; use App\Http\Resources\PlaylistResource; use App\Models\Playlist; use App\Models\Song; use App\Values\SmartPlaylist\SmartPlaylistRule; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_playlist; use function Tests\create_playlist...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/tests/Feature/SongVisibilityTest.php
tests/Feature/SongVisibilityTest.php
<?php namespace Tests\Feature; use App\Models\Song; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; use function Tests\create_admin; class SongVisibilityTest extends TestCase { #[Test] public function changingVisibilityIsForbiddenInCommunityEdition(): void { $owner = create_admin(); ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false