File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/Github/Tests/Api/Gist Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ public function show($gist, $comment)
22
22
23
23
public function create ($ gist , $ body )
24
24
{
25
- return $ this ->post ('gists/ ' .rawurlencode ($ gist ).'/comments ' , array ($ body ));
25
+ return $ this ->post ('gists/ ' .rawurlencode ($ gist ).'/comments ' , array (' body ' => $ body ));
26
26
}
27
27
28
28
public function update ($ gist , $ comment_id , $ body )
29
29
{
30
- return $ this ->patch ('gists/ ' .rawurlencode ($ gist ).'/comments/ ' .rawurlencode ($ comment_id ), array ($ body ));
30
+ return $ this ->patch ('gists/ ' .rawurlencode ($ gist ).'/comments/ ' .rawurlencode ($ comment_id ), array (' body ' => $ body ));
31
31
}
32
32
33
33
public function remove ($ gist , $ comment )
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public function shouldCreateGistComment()
48
48
$ api = $ this ->getApiMock ();
49
49
$ api ->expects ($ this ->once ())
50
50
->method ('post ' )
51
- ->with ('gists/123/comments ' , array ('Test body ' ))
51
+ ->with ('gists/123/comments ' , array ('body ' => ' Test body ' ))
52
52
->will ($ this ->returnValue ($ expectedValue ));
53
53
54
54
$ this ->assertEquals ($ expectedValue , $ api ->create ('123 ' , 'Test body ' ));
@@ -60,7 +60,7 @@ public function shouldCreateGistComment()
60
60
public function shouldUpdateGistComment ()
61
61
{
62
62
$ expectedValue = array ('comment1data ' );
63
- $ data = array ('body test ' );
63
+ $ data = array ('body ' => ' body test ' );
64
64
65
65
$ api = $ this ->getApiMock ();
66
66
$ api ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments