SevenShores\Hubspot\Tests\Integration\Resources\CompanyPropertiesTest::update PHP Method

update() public method

public update ( )
    public function update()
    {
        $createdPropertyResponse = $this->createCompanyProperty();
        $property = ["label" => "Custom property Changed", "description" => "An Awesome Custom property that changed", "groupName" => "companyinformation", "type" => "string", "fieldType" => "text", "formField" => true, "displayOrder" => 6, "options" => []];
        $response = $this->companyProperties->update($createdPropertyResponse->name, $property);
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertEquals('Custom property Changed', $response->label);
    }