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