SevenShores\Hubspot\Tests\Integration\Resources\CompaniesTest::delete PHP Method

delete() public method

public delete ( )
    public function delete()
    {
        $newCompanyResponse = $this->createCompany();
        $id = $newCompanyResponse['companyId'];
        $response = $this->companies->delete($id);
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertEquals($id, $response['companyId']);
        $this->assertTrue($response['deleted']);
    }