From cc881cc5c7896d6b4dfb14eac074ede361554ec5 Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Mon, 18 Jun 2018 22:39:15 +0800 Subject: [PATCH] added updatebankslip test --- tests/Feature/BookingTest.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/Feature/BookingTest.php b/tests/Feature/BookingTest.php index ea54b309..332df182 100644 --- a/tests/Feature/BookingTest.php +++ b/tests/Feature/BookingTest.php @@ -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');