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

getById() public method

public getById ( )
    public function getById()
    {
        //Ensure that we have a company to fetch
        $newCompanyResponse = $this->createCompany();
        $id = $newCompanyResponse['companyId'];
        $response = $this->companies->getById($id);
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertEquals($id, $response['companyId']);
    }