Beispiel #1
0
 /**
  * Get runs within x # of days. /
  */
 public function getRuns()
 {
     // Get all the test runs
     // Sort in descending order by id
     $runs = new \App\Run();
     return $runs->getRunsWithinXDays(90);
 }
Beispiel #2
0
 public function loadPage($id = null)
 {
     $runModel = new \App\Run();
     $run = $runModel->getRun($id);
     if (is_null($run)) {
         \Session::flash('flash_message', 'Run not found.');
         return redirect('/');
     }
     $nav = new Helper();
     return view('runs.single')->with(['nav' => $nav->buildNavMenu(), 'run' => $run]);
 }
Beispiel #3
0
 public function test_run_model()
 {
     $user = App\User::find(1);
     $input = ['batch_check_id' => [2, 3]];
     $this->actingAs($user)->visit('/sampleRuns/create')->submitForm('Enter run details', $input)->seePageIs('/runDetails/create')->type('TestExperiment', 'experiment_name')->type('Desc', 'description')->type('111', 'read1')->type('222', 'read2')->type('FCID', 'flow_cell')->press('Submit');
     $run = App\Run::first();
     $adaptor = $run->adaptor;
     $application = $run->application;
     $assay = $run->assay;
     $chemistry = $run->chemistry;
     $iem_file_version = $run->iem_file_version;
     $instrument = $run->instrument;
     $run_status = $run->run_status;
     $work_flow = $run->work_flow;
     $user = $run->users;
     $project_group = $run->project_group;
     $sample_runs = $run->runs;
     $this->assertNotNull($adaptor);
     $this->assertNotNull($application);
     $this->assertNotNull($assay);
     $this->assertNotNull($chemistry);
     $this->assertNotNull($iem_file_version);
     $this->assertNotNull($instrument);
     $this->assertNotNull($run_status);
     $this->assertNotNull($work_flow);
     $this->assertNotNull($user);
     $this->assertNotNull($project_group);
     $this->assertNotNull($sample_runs);
 }