Reject user bank slip with reason. Add migration for userbankslip.

This commit is contained in:
Too
2018-06-18 18:57:27 +08:00
parent 50492ef1a3
commit 012fef948e
4 changed files with 78 additions and 0 deletions
+10
View File
@@ -117,4 +117,14 @@ class BookingTest extends TestCase
->json('POST','/api/booking/' . $this->booking->id . '/approve-bank-slip', [])
->assertSuccessful();
}
public function testRejectBankSlip()
{
$this->actingAs($this->user)
->json('POST','/api/booking/' . $this->booking->id . '/reject-bank-slip', [
'reject_reason' => 'Amount no enough'
])
->assertSuccessful();
}
}