mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-24 23:04:16 +00:00
edit the unit test
This commit is contained in:
+33
-33
@@ -34,49 +34,49 @@ class OrderTest extends TestCase
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
|
||||
// public function testPost()
|
||||
// {
|
||||
// $response = $this->json('POST', '/api/booking/2', [
|
||||
public function testPost()
|
||||
{
|
||||
$response = $this->json('POST', '/api/booking/1', [
|
||||
|
||||
// 'account_name' => 'kita',
|
||||
// 'account_num' => '1234',
|
||||
// 'bank_name' => 'ferdas',
|
||||
// 'bank_branch' => 'dersa',
|
||||
// 'company_name' => 'desaq',
|
||||
// 'company_address' => 'qada',
|
||||
// 'bank_address' => 'daqa',
|
||||
// 'swift_code' => '3eds2',
|
||||
// 'cnap' => 'redah'
|
||||
'account_name' => 'kijd',
|
||||
'account_num' => '1234',
|
||||
'bank_name' => 'ferdas',
|
||||
'bank_branch' => 'dersa',
|
||||
'company_name' => 'desaq',
|
||||
'company_address' => 'qada',
|
||||
'bank_address' => 'daqa',
|
||||
'swift_code' => '3eds2',
|
||||
'cnap' => 'redah'
|
||||
|
||||
// ]);
|
||||
]);
|
||||
|
||||
// $response
|
||||
// ->assertStatus(201);
|
||||
// }
|
||||
$response
|
||||
->assertStatus(201);
|
||||
}
|
||||
|
||||
// public function testPut()
|
||||
// {
|
||||
// $response = $this->json('PUT', '/api/booking/1', [
|
||||
public function testPut()
|
||||
{
|
||||
$response = $this->json('PUT', '/api/booking/1', [
|
||||
|
||||
// 'account_name' => 'kaokndfoanf',
|
||||
// 'account_num' => '1234',
|
||||
// 'bank_name' => 'ferdas',
|
||||
// 'bank_branch' => 'dersa',
|
||||
// 'company_name' => 'desaq',
|
||||
// 'company_address' => 'qada',
|
||||
// 'bank_address' => 'daqa',
|
||||
// 'swift_code' => '3eds2',
|
||||
// 'cnap' => 'redah'
|
||||
'account_name' => 'kaokndfoanf',
|
||||
'account_num' => '1234',
|
||||
'bank_name' => 'ferdas',
|
||||
'bank_branch' => 'dersa',
|
||||
'company_name' => 'desaq',
|
||||
'company_address' => 'qada',
|
||||
'bank_address' => 'daqa',
|
||||
'swift_code' => '3eds2',
|
||||
'cnap' => 'redah'
|
||||
|
||||
// ]);
|
||||
]);
|
||||
|
||||
// $response
|
||||
// ->assertStatus(200);
|
||||
// }
|
||||
$response
|
||||
->assertStatus(200);
|
||||
}
|
||||
|
||||
public function testDelete()
|
||||
{
|
||||
$response = $this->json('DELETE', '/api/booking/2');
|
||||
$response = $this->json('DELETE', '/api/booking/1');
|
||||
|
||||
$response->assertStatus(204);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user