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 5ed46cc commit 5703492Copy full SHA for 5703492
test/Github/Tests/Api/UserTest.php
@@ -20,6 +20,22 @@ public function shouldShowUser()
20
$this->assertEquals($expectedArray, $api->show('l3l0'));
21
}
22
23
+ /**
24
+ * @test
25
+ */
26
+ public function shouldShowByIdUser()
27
+ {
28
+ $expectedArray = ['id' => 1, 'username' => 'l3l0'];
29
+
30
+ $api = $this->getApiMock();
31
+ $api->expects($this->once())
32
+ ->method('get')
33
+ ->with('/user/1')
34
+ ->will($this->returnValue($expectedArray));
35
36
+ $this->assertEquals($expectedArray, $api->showById(1));
37
+ }
38
39
/**
40
* @test
41
*/
0 commit comments