예제 #1
0
 public function test_store_by_post_filed_dont_exists_assignor()
 {
     $student = factory(Student::class)->create();
     BilletAssignor::where('id', '>=', 1)->delete();
     $billet = ['amount' => 50, 'student_id' => $student->id, 'refer' => 201615];
     $return = $this->post('api/v1/billet/', $billet);
     $this->seeStatusCode(403);
     $this->see("There isn't a transferor, must create a transferor to be able to create billet.");
 }