/** * ProjectType::deleteTypesGroup() * */ public function testDeleteTypesGroup() { $this->setVars(); $response = ProjectType::deleteTypesGroup($this->project->id, $this->projectType); $this->assertEquals(true, $response); }
/** * 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.']); }