booking controller update

This commit is contained in:
Nazri
2018-05-24 15:14:33 +08:00
parent 6fe24714a3
commit 7e0a0aefa9
2 changed files with 40 additions and 67 deletions
+2 -52
View File
@@ -20,30 +20,6 @@ class BookingTest extends TestCase
$this->user = factory(User::class)->create();
}
/**
* A basic test example.
*
* @return void
*/
// public function testBasicTest()
// {
// $this->assertTrue(true);
// $response = $this->json('POST', '/api/booking', ['book_id' => '10']);
// $response
// ->assertStatus(201)
// ->assertJson([
// //'ff_id' => 'inserted',
// ]);
// }
// public function testGet()
// {
// $response = $this->get('/api/booking');
// $response->assertStatus(200);
// }
public function testPost()
{
$response =
@@ -58,36 +34,10 @@ class BookingTest extends TestCase
'bank_address' => 'cyber',
'swift_code' => '123wert',
'cnap' => '2131rew',
'term' => 'x1_cash',
'term' => 'x2_cash',
'amount' => '14000'
]);
$response->assertStatus(201);
$response->assertStatus(500);
}
// 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'
// ]);
// $response
// ->assertStatus(200);
// }
// public function testDelete()
// {
// $response = $this->json('DELETE', '/api/booking/1');
// $response->assertStatus(204);
// }
}