mirror of
https://github.com/koel/koel
synced 2025-01-05 09:18:51 +00:00
21 lines
473 B
PHP
21 lines
473 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Unit\Services;
|
||
|
|
||
|
use App\Services\iTunesService;
|
||
|
use Tests\TestCase;
|
||
|
|
||
|
class iTunesServiceTest extends TestCase
|
||
|
{
|
||
|
public function testConfiguration()
|
||
|
{
|
||
|
config(['koel.itunes.enabled' => true]);
|
||
|
/** @var iTunesService $iTunes */
|
||
|
$iTunes = app()->make(iTunesService::class);
|
||
|
$this->assertTrue($iTunes->used());
|
||
|
|
||
|
config(['koel.itunes.enabled' => false]);
|
||
|
$this->assertFalse($iTunes->used());
|
||
|
}
|
||
|
}
|