function update($form_guid, $form) { $endpoint = "https://api.hubapi.com/forms/v2/forms/{$form_guid}"; $options['json'] = $form; return $this->client->request('post', $endpoint, $options); }
/** @test */ public function update() { $form = $this->createForm(); $response = $this->forms->update($form->guid, ['name' => 'new name ' . uniqid()]); $this->assertEquals(200, $response->getStatusCode()); }