function delete($propertyName) { $endpoint = "https://api.hubapi.com/companies/v2/properties/named/{$propertyName}"; return $this->client->request('delete', $endpoint); }
/** @test */ public function delete() { $createdPropertyResponse = $this->createCompanyProperty(); $response = $this->companyProperties->delete($createdPropertyResponse->name); $this->assertEquals(204, $response->getStatusCode()); }