Skip to content

Commit 0bd3cd4

Browse files
committed
Changing method name from "jobs" to "all"
1 parent a1174d7 commit 0bd3cd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Gitlab/Api/Jobs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Jobs extends AbstractApi
1818
* @param array $scope
1919
* @return mixed
2020
*/
21-
public function jobs($project_id, array $scope = [])
21+
public function all($project_id, array $scope = [])
2222
{
2323
return $this->get("projects/".$this->encodePath($project_id)."/jobs", array(
2424
'scope' => $scope

test/Gitlab/Tests/Api/JobsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function shouldGetAllJobs()
2424
->will($this->returnValue($expectedArray))
2525
;
2626

27-
$this->assertEquals($expectedArray, $api->jobs(1, [Jobs::SCOPE_PENDING]));
27+
$this->assertEquals($expectedArray, $api->all(1, [Jobs::SCOPE_PENDING]));
2828
}
2929

3030
/**

0 commit comments

Comments
 (0)