File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tests/Unit/Api/HostedPages Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ public function list(array $parameters = [])
24
24
}
25
25
26
26
/**
27
- * @param array $id
27
+ * @param string $id
28
28
*
29
29
* @throws Exception
30
30
*
31
31
* @return array|string
32
32
*/
33
- public function find (array $ id )
33
+ public function find (string $ id )
34
34
{
35
35
$ url = $ this ->url ('hosted_pages/%s ' , $ id );
36
36
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function should_find_hosted_page()
29
29
$ hostedPages = $ this ->getApiMock ();
30
30
$ hostedPages ->expects ($ this ->once ())
31
31
->method ('get ' )
32
- ->with ('https://123456789.chargebee.com/api/v2/hosted_pages ' )
32
+ ->with ('https://123456789.chargebee.com/api/v2/hosted_pages/QxjWg9dNDn3TeokQWefsTrfRHvaqNuP4 ' )
33
33
->will ($ this ->returnValue ($ expected ));
34
34
35
35
$ this ->assertEquals ($ expected , $ hostedPages ->find ('QxjWg9dNDn3TeokQWefsTrfRHvaqNuP4 ' ));
You can’t perform that action at this time.
0 commit comments