mirror of
https://github.com/koel/koel
synced 2024-11-28 15:00:42 +00:00
20 lines
473 B
PHP
20 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());
|
|
}
|
|
}
|