koel/tests/Unit/Models/ArtistTest.php
2017-12-10 01:23:37 +01:00

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