SevenShores\Hubspot\Tests\Integration\Resources\DealsTest::update PHP Метод

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

public update ( )
    public function update()
    {
        $response = $this->createDeal();
        $id = $response->dealId;
        $response = $this->deals->update($id, ["properties" => [["name" => "amount", "value" => "70000"]]]);
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertSame('70000', $response['properties']['amount']['value']);
    }