public function testDestroy()
 {
     $faker = Faker\Factory::create();
     $data = ['action' => $faker->name];
     $service = \Distilleries\Expendable\Models\Service::create($data);
     $this->call('PUT', action($this->controller . '@putDestroy'), ['id' => $service->id]);
     $newService = \Distilleries\Expendable\Models\Service::find($service->id);
     $this->assertEquals(null, $newService);
 }
 public function testPermissionService()
 {
     list($role, $service, $permission) = $this->addContent();
     $expected = \Distilleries\Expendable\Models\Service::find($service->id);
     $this->assertEquals($expected, $permission->service);
 }