public function testArtist() { $artist = Artist::first(); $mocked = Download::shouldReceive('from')->once()->andReturn($this->mediaPath . '/blank.mp3'); $this->get("api/download/artist/{$artist->id}")->seeStatusCode(200); }