assertTrue(true); } public function testPOST() { $response = $this->json('POST', '/api/company', [ 'company_name'=>'testing', 'registration_no'=>'testing', 'tax_no'=>'testing', 'tel_no'=>'12345', 'fax'=>'12345', '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/2', [ 'company_name'=>'changed testing', 'registration_no'=>'testing', 'tax_no'=>'testing', 'tel_no'=>'12345', 'fax'=>'12345', 'address'=>'testing', 'city'=>'testing', 'postcode'=>'testing', 'state'=>'testing', 'country'=>'testing', 'contact_person'=>'testing', ]); $response->assertStatus(200); } public function testcompanyProfile() { Storage::fake('company_profile'); $response = $this->json('POST', '/api/company/company_profile/2', [ 'company_profile' => UploadedFile::fake()->image('comp.jpg') ]); dd($response->getContent()); $response->assertStatus(200); } public function testregCert() { Storage::fake('reg_cert'); $response = $this->json('POST', '/api/company/reg_cert/2', [ 'reg_cert' => UploadedFile::fake()->create('document.pdf')//, $sizeInKilobytes) ]); dd($response->getContent()); $response->assertStatus(200); } }