mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
upload po test
This commit is contained in:
@@ -63,10 +63,11 @@ class BookingTest extends TestCase
|
||||
|
||||
$response = $this->json('POST', '/api/booking/1/upload-user-bankslip', [
|
||||
'bankslip_url' => UploadedFile::fake()->image('comp.jpg'),
|
||||
'transfer_amount' => '12345'
|
||||
'transfer_amount' => '9000'
|
||||
]);
|
||||
|
||||
dd($response->getContent());
|
||||
$response->assertStatus(201);
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
|
||||
public function testuploadPO()
|
||||
@@ -78,38 +79,7 @@ class BookingTest extends TestCase
|
||||
'amount' => '12345'
|
||||
]);
|
||||
dd($response->getContent());
|
||||
$response->assertStatus(201);
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
|
||||
|
||||
// function upload_bankslip_test()
|
||||
// {
|
||||
// Storage::fake('public');
|
||||
//
|
||||
// $this->json('post', '/api/booking/1/upload-user-bankslip', [
|
||||
// 'bankslip_url' => $file = UploadedFile::fake()->image('random.jpg'),
|
||||
// 'transfer_amount' => '12345',
|
||||
// ]);
|
||||
//
|
||||
// $this->assertEquals('file/' . $file->hashName(), Upload::latest()->first()->file);
|
||||
//
|
||||
// Storage::disk('public')->assertExists('file/' . $file->hashName());
|
||||
//
|
||||
// }
|
||||
//
|
||||
// function upload_po_test()
|
||||
// {
|
||||
// Storage::fake('public');
|
||||
//
|
||||
// $this->json('post', '/api/booking/1/upload-po', [
|
||||
// 'image_url' => $file = UploadedFile::fake()->image('random.jpg'),
|
||||
// 'amount' => '12345',
|
||||
// ]);
|
||||
//
|
||||
// $this->assertEquals('file/' . $file->hashName(), Upload::latest()->first()->file);
|
||||
//
|
||||
// Storage::disk('public')->assertExists('file/' . $file->hashName());
|
||||
//
|
||||
// }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user