spec\SevenShores\Hubspot\Resources\CompanyPropertiesSpec::it_can_create_a_company_property_group PHP Метод

it_can_create_a_company_property_group() публичный Метод

    function it_can_create_a_company_property_group($client)
    {
        $url = $this->buildUrl('/companies/v2/groups/');
        $group = ["name" => "anewcustomgroup", "displayName" => "A New Custom Group", "displayOrder" => 6, "properties" => ['description' => "A company's shipping address", 'label' => 'ShippingAddress', 'fieldType' => 'text', 'formField' => True, 'type' => 'string', 'options' => [], 'displayOrder' => 0, 'name' => 'shippingaddress']];
        $client->post($url, ['headers' => $this->headers, 'json' => $group])->shouldBeCalled()->willReturn('response');
        $this->createGroup($group)->shouldReturn('response');
    }