koel/tests/Unit/Models/ArtistTest.php
2017-12-09 23:39:34 +01:00

27 lines
612 B
PHP

<?php
namespace Tests\Unit\Models;
use App\Models\Artist;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use org\bovigo\vfs\vfsStream;
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);
}
}