koel/tests/Unit/Services/iTunesServiceTest.php
2018-08-19 16:40:25 +02:00

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());
}
}