From f7d468e2d5d8ea28627e26b52b6faf783bb6ba81 Mon Sep 17 00:00:00 2001 From: Zain Fauzan Rofie Azizi Date: Fri, 4 May 2018 16:19:21 +0800 Subject: [PATCH] remove slash --- tests/Unit/DeliveryinfoTest.php | 40 ++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/tests/Unit/DeliveryinfoTest.php b/tests/Unit/DeliveryinfoTest.php index 93c193b..8d927f2 100644 --- a/tests/Unit/DeliveryinfoTest.php +++ b/tests/Unit/DeliveryinfoTest.php @@ -22,31 +22,31 @@ class DeliveryinfoTest extends TestCase $response->assertStatus(200); } - // public function testPOST() - // { - // $response = $this->json('POST', '/api/company/com_id/deliveryinfo', [ + public function testPOST() + { + $response = $this->json('POST', '/api/company/com_id/deliveryinfo', [ - // 'branch' => 'Testing', - // 'deli_info' => 'Testing', - // 'address' => 'Testing', - // 'city' => 'Testing', - // 'postcode' => '12345', - // 'state' => 'Testing', - // 'country' => 'Testing', - // 'contact_person' => 'Testing', - // 'contact_person_no' => '12345', + 'branch' => 'Testing', + 'deli_info' => 'Testing', + 'address' => 'Testing', + 'city' => 'Testing', + 'postcode' => '12345', + 'state' => 'Testing', + 'country' => 'Testing', + 'contact_person' => 'Testing', + 'contact_person_no' => '12345', - // ]); + ]); - // $response->assertStatus(201); - // } + $response->assertStatus(201); + } - // public function testDELETE() - // { - // $response = $this->json('DELETE', '/api/company/4/deliveryinfo'); + public function testDELETE() + { + $response = $this->json('DELETE', '/api/company/4/deliveryinfo'); - // $response->assertStatus(204); - // } + $response->assertStatus(204); + } public function testPUT() {