mirror of
https://github.com/koel/koel
synced 2024-12-04 09:49:23 +00:00
25 lines
526 B
PHP
25 lines
526 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\Models;
|
|
|
|
use App\Models\Artist;
|
|
use Tests\TestCase;
|
|
|
|
class ArtistTest extends TestCase
|
|
{
|
|
/** @test */
|
|
public function it_can_be_instantiated()
|
|
{
|
|
$this->assertInstanceOf(Artist::class, new Artist());
|
|
}
|
|
|
|
/** @test */
|
|
public function various_artist_can_be_retrieved()
|
|
{
|
|
// When I retrieve the Various Artist
|
|
$artist = Artist::getVariousArtist();
|
|
|
|
// Then I received the Various Artist
|
|
$this->assertTrue($artist->is_various);
|
|
}
|
|
}
|