chobie\Jira\Api::updateVersion PHP Method

updateVersion() public method

Updates version.
public updateVersion ( integer $version_id, array $params = [] ) : false
$version_id integer Version ID.
$params array Key->Value list to update the version with.
return false
    public function updateVersion($version_id, array $params = array())
    {
        return $this->api(self::REQUEST_PUT, sprintf('/rest/api/2/version/%d', $version_id), $params);
    }

Usage Example

Example #1
0
 public function testUpdateVersion()
 {
     $params = array('overdue' => true, 'description' => 'new description');
     $this->expectClientCall(Api::REQUEST_PUT, '/rest/api/2/version/111000', $params, '');
     $this->assertFalse($this->api->updateVersion(111000, $params));
 }