We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c01c566 commit 5918788Copy full SHA for 5918788
test/Gitlab/Tests/Api/UsersTest.php
@@ -112,6 +112,25 @@ public function shouldShowUsersProjects()
112
$this->assertEquals($expectedArray, $api->usersProjects(1));
113
}
114
115
+ /**
116
+ * @test
117
+ */
118
+ public function shouldShowUsersProjectsWithLimit()
119
+ {
120
+ $expectedArray = array(
121
+ array('id' => 1, 'name' => 'matt-project-1')
122
+ );
123
+
124
+ $api = $this->getApiMock();
125
+ $api->expects($this->once())
126
+ ->method('get')
127
+ ->with('users/1/projects')
128
+ ->will($this->returnValue($expectedArray))
129
+ ;
130
131
+ $this->assertEquals($expectedArray, $api->usersProjects(1, ['per_page'=>1]));
132
+ }
133
134
/**
135
* @test
136
*/
0 commit comments