예제 #1
0
 /**
  * ProjectType::deleteTypesGroup()
  *
  */
 public function testDeleteTypesGroup()
 {
     $this->setVars();
     $response = ProjectType::deleteTypesGroup($this->project->id, $this->projectType);
     $this->assertEquals(true, $response);
 }
예제 #2
0
 /**
  * Handles GET requests for /project/{project_id}/{project_type}/delete
  *
  * @return redirect
  */
 public function deleteProjectType($project_id, $project_type)
 {
     ProjectType::deleteTypesGroup($project_id, $project_type);
     return Redirect::back()->with(['error' => false, 'message' => 'Type set deleted.']);
 }