Skip to content

Commit 78e5f31

Browse files
author
Olaf Hoffmann
committed
Moves the issue time stats test out of the comment test section in IssuesTest
1 parent 0c482d8 commit 78e5f31

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

test/Gitlab/Tests/Api/IssuesTest.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -152,23 +152,6 @@ public function shouldGetIssueComment()
152152
$this->assertEquals($expectedArray, $api->showComment(1, 2, 3));
153153
}
154154

155-
/**
156-
* @test
157-
*/
158-
public function shouldGetIssueTimeStats()
159-
{
160-
$expectedArray = array('time_estimate' => 14400, 'total_time_spent' => 5400, 'human_time_estimate' => '4h', 'human_total_time_spent' => '1h 30m');
161-
162-
$api = $this->getApiMock();
163-
$api->expects($this->once())
164-
->method('get')
165-
->with('projects/1/issues/2/time_stats')
166-
->will($this->returnValue($expectedArray))
167-
;
168-
169-
$this->assertEquals($expectedArray, $api->getTimeStats(1, 2));
170-
}
171-
172155
/**
173156
* @test
174157
*/
@@ -208,4 +191,21 @@ protected function getApiClass()
208191
{
209192
return 'Gitlab\Api\Issues';
210193
}
194+
195+
/**
196+
* @test
197+
*/
198+
public function shouldGetIssueTimeStats()
199+
{
200+
$expectedArray = array('time_estimate' => 14400, 'total_time_spent' => 5400, 'human_time_estimate' => '4h', 'human_total_time_spent' => '1h 30m');
201+
202+
$api = $this->getApiMock();
203+
$api->expects($this->once())
204+
->method('get')
205+
->with('projects/1/issues/2/time_stats')
206+
->will($this->returnValue($expectedArray))
207+
;
208+
209+
$this->assertEquals($expectedArray, $api->getTimeStats(1, 2));
210+
}
211211
}

0 commit comments

Comments
 (0)