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); + } +}