function getById($form_guid) { $endpoint = "https://api.hubapi.com/forms/v2/forms/{$form_guid}"; return $this->client->request('get', $endpoint); }
/** @test */ public function getById() { $form = $this->createForm(); $response = $this->forms->getById($form->guid); $this->assertEquals(200, $response->getStatusCode()); }