From 5a7066969aa5ff59f58db3bf2cb5c6e818ac0ca0 Mon Sep 17 00:00:00 2001 From: Aqeeb Imtiaz Harun Date: Tue, 15 May 2018 11:17:14 +0800 Subject: [PATCH] Test Company Information Page --- tests/Unit/CompanyTest.php | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 tests/Unit/CompanyTest.php diff --git a/tests/Unit/CompanyTest.php b/tests/Unit/CompanyTest.php new file mode 100644 index 0000000..9e3f495 --- /dev/null +++ b/tests/Unit/CompanyTest.php @@ -0,0 +1,56 @@ +assertTrue(true); + } + + public function testPOST() + { + $response = $this->json('POST', '/api/company', [ + 'company_name'=>'testing', + 'registration_no'=>'testing', + 'tax_no'=>'testing', + 'tel_no'=>'testing', + 'fax'=>'testing', + 'address'=>'testing', + 'city'=>'testing', + 'postcode'=>'testing', + 'state'=>'testing', + 'country'=>'testing', + 'contact_person'=>'testing', + ]); + $response->assertStatus(201); + } + + public function testPUT() + { + $response = $this->json('PUT', '/api/company/1', [ + 'company_name'=>'testing', + 'registration_no'=>'testing', + 'tax_no'=>'testing', + 'tel_no'=>'testing', + 'fax'=>'testing', + 'address'=>'testing', + 'city'=>'testing', + 'postcode'=>'testing', + 'state'=>'testing', + 'country'=>'testing', + 'contact_person'=>'testing', + ]); + $response->assertStatus(200); + } +}