Skip to content

Commit cebe684

Browse files
author
Patric Steffen
committed
Added unit tests from e1c9865
1 parent b410403 commit cebe684

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

tests/IssueTest.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,42 @@ public function testUpdateIssue($issueKey)
137137
}
138138
}
139139

140+
/**
141+
* @depends testChangeAssignee
142+
*/
143+
public function testChangeAssignee($issueKey)
144+
{
145+
try {
146+
$issueService = new IssueService();
147+
148+
$ret = $issueService->changeAssignee($issueKey, 'lesstif');
149+
150+
print_r($ret);
151+
152+
return $issueKey;
153+
} catch (JiraException $e) {
154+
$this->assertTrue(false, 'Change assignee failed : '.$e->getMessage());
155+
}
156+
}
157+
158+
/**
159+
* @depends testChangeAssignee
160+
*/
161+
public function testDeleteIssue($issueKey)
162+
{
163+
try {
164+
$issueService = new IssueService();
165+
166+
$ret = $issueService->deleteIssue($issueKey);
167+
168+
print_r($ret);
169+
170+
return $issueKey;
171+
} catch (JiraException $e) {
172+
$this->assertTrue(false, 'delete issue failed : '.$e->getMessage());
173+
}
174+
}
175+
140176
/**
141177
* @depends testUpdateIssue
142178
*/

0 commit comments

Comments
 (0)