SevenShores\Hubspot\Tests\Integration\Resources\FormsTest::createForm PHP Method

createForm() private method

* Lots of tests need an existing object to modify.
private createForm ( )
    private function createForm()
    {
        $response = $this->forms->create(["name" => "Test Form " . uniqid(), "action" => "", "method" => "POST", "cssClass" => "hs-form stacked", "redirect" => "", "submitText" => "Sign Up", "followUpId" => "", "leadNurturingCampaignId" => "", "notifyRecipients" => "", "embeddedCode" => "", "formFieldGroups" => ["fields" => [["name" => "firstname", "label" => "First Name", "description" => "", "groupName" => "contactinformation", "type" => "string", "fieldType" => "text", "displayOrder" => 1, "required" => true, "enabled" => true, "hidden" => false, "defaultValue" => "", "isSmartField" => false, "validation" => ["name" => "", "message" => ""]]], "default" => true, "isSmartGroup" => false]]);
        $this->assertEquals(200, $response->getStatusCode());
        return $response;
    }