public function testDestroy()
 {
     $Activity3 = array("description" => "Test store activity updated", "date" => "2015-10-5", "time" => "23:00:00", "plant_id" => \App\Plant::where("name", "=", "TestActivityPlant")->first()->id, "weather" => "fews cloud");
     $ActivityController = new \App\Http\Controllers\activityController();
     $ActivityController->destroy(activity::where("description", "=", "Test store activity updated")->first()->id);
     $this->notSeeInDatabase("activity", $Activity3);
     $this->assertNull($ActivityController->destroy(null));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     //
     $activities = activity::where('date', '>', date('Y-m-d'))->orderBy('date')->get();
     return view('player.activity.activity', ['activities' => $activities]);
 }