Example #1
0
 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);
 }
Example #2
0
 public function testFavorites()
 {
     Download::shouldReceive('from')->once()->andReturn($this->mediaPath . '/blank.mp3');
     $this->getAsUser('api/download/favorites')->seeStatusCode(200);
 }