added updatebankslip test

This commit is contained in:
Jack Goh
2018-06-18 22:39:15 +08:00
parent 4a4e147072
commit cc881cc5c7
+10 -1
View File
@@ -74,12 +74,21 @@ class BookingTest extends TestCase
$this->actingAs($this->user)
->json('POST', '/api/booking/' . $this->booking->id . '/upload-user-bankslip', [
'bankslip_url' => $bankslip_url,
'bankslip_url' => $bankslip_url
])
->assertSuccessful();
}
public function testUpdateBankslipAmount()
{
$this->actingAs($this->user)
->json('PUT', '/api/booking/' . $this->booking->id . '/bankslip-amount', [
'transfer_amount' => '9000'
])
->assertSuccessful();
}
public function testuploadPO()
{
Storage::fake('image_url');