示例#1
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);
 }