mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
Fix conflit of variable name with master branch.
This commit is contained in:
@@ -31,7 +31,7 @@ class BookingTest extends TestCase
|
||||
'user_id' => $this->user->id
|
||||
]);
|
||||
$this->userBankSlip = factory(UserBankSlip::class)->create([
|
||||
'book_id' => $this->booking->id
|
||||
'booking_id' => $this->booking->id
|
||||
]);
|
||||
|
||||
}
|
||||
@@ -75,12 +75,12 @@ class BookingTest extends TestCase
|
||||
$bankslip_url = UploadedFile::fake()->image('comp.jpg');
|
||||
|
||||
if(!file_exists($bankslip_url)){
|
||||
$response->assertStatus(400);
|
||||
$response->assertStatus(400);
|
||||
}
|
||||
|
||||
|
||||
$this->actingAs($this->user)
|
||||
->json('POST', '/api/booking/' . $this->booking->id . '/upload-user-bankslip', [
|
||||
'bankslip_url' => $bankslip_url
|
||||
'file' => $bankslip_url
|
||||
])
|
||||
->assertSuccessful();
|
||||
}
|
||||
@@ -88,13 +88,12 @@ class BookingTest extends TestCase
|
||||
public function testUpdateBankslipAmount()
|
||||
{
|
||||
$this->actingAs($this->user)
|
||||
->json('PUT', '/api/booking/' . $this->booking->id . '/bankslip-amount', [
|
||||
->json('PATCH', '/api/booking/' . $this->booking->id . '/bankslip-amount', [
|
||||
'transfer_amount' => '9000'
|
||||
])
|
||||
->assertSuccessful();
|
||||
->assertSuccessful();
|
||||
}
|
||||
|
||||
|
||||
public function testuploadPO()
|
||||
{
|
||||
Storage::fake('image_url');
|
||||
@@ -106,7 +105,7 @@ class BookingTest extends TestCase
|
||||
|
||||
$this->actingAs($this->user)
|
||||
->json('POST', '/api/booking/' . $this->booking->id . '/upload-po', [
|
||||
'image_url' => UploadedFile::fake()->image('comp.jpg'),
|
||||
'file' => UploadedFile::fake()->image('comp.jpg'),
|
||||
'amount' => '12345'
|
||||
])
|
||||
->assertSuccessful();
|
||||
|
||||
Reference in New Issue
Block a user