public function testFavorites() { $mocked = Download::shouldReceive('from')->once()->andReturn($this->mediaPath . '/blank.mp3'); $this->actingAs(factory(User::class)->create())->get('api/download/favorites')->seeStatusCode(200); }
public function testFavorites() { Download::shouldReceive('from')->once()->andReturn($this->mediaPath . '/blank.mp3'); $this->getAsUser('api/download/favorites')->seeStatusCode(200); }