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 c520754 commit 42f1f42Copy full SHA for 42f1f42
test/Github/Tests/Api/UserTest.php
@@ -228,6 +228,29 @@ public function shouldGetUserGists()
228
$this->assertEquals($expectedArray, $api->gists('l3l0'));
229
}
230
231
+ /**
232
+ * @test
233
+ */
234
+ public function shouldGetAuthorizedUserEvents()
235
+ {
236
+ $expectedArray = [
237
+ [
238
+ 'id' => 1,
239
+ 'actor' => [
240
241
+ 'login' => 'l3l0',
242
+ ],
243
244
+ ];
245
+ $api = $this->getApiMock();
246
+ $api->expects($this->once())
247
+ ->method('get')
248
+ ->with('/users/l3l0/events')
249
+ ->will($this->returnValue($expectedArray));
250
+
251
+ $this->assertEquals($expectedArray, $api->events('l3l0'));
252
+ }
253
254
/**
255
* @return string
256
*/
0 commit comments