Example #1
0
 public function test_delete_guide()
 {
     $this->test_guide_store();
     $guide = Guide::first();
     $this->delete(route('resources.guides.destroy', [$guide->slug]));
     $this->dontSeeInDatabase('guides', ['id' => 1]);
 }
Example #2
0
 public function test_delete_guide_step_image()
 {
     $this->test_guide_step_store_with_attachment();
     $guide = Guide::first();
     $step = $guide->steps()->first();
     $image = $step->images()->first();
     $this->delete(route('resources.guides.steps.images.destroy', [$guide->slug, $step->id, $image->uuid]));
     $this->dontSeeInDatabase('uploads', ['id' => 1]);
 }