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 = [])
2424 }
2525
2626 /**
27- * @param array $id
27+ * @param string $id
2828 *
2929 * @throws Exception
3030 *
3131 * @return array|string
3232 */
33- public function find (array $ id )
33+ public function find (string $ id )
3434 {
3535 $ url = $ this ->url ('hosted_pages/%s ' , $ id );
3636
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function should_find_hosted_page()
2929 $ hostedPages = $ this ->getApiMock ();
3030 $ hostedPages ->expects ($ this ->once ())
3131 ->method ('get ' )
32- ->with ('https://123456789.chargebee.com/api/v2/hosted_pages ' )
32+ ->with ('https://123456789.chargebee.com/api/v2/hosted_pages/QxjWg9dNDn3TeokQWefsTrfRHvaqNuP4 ' )
3333 ->will ($ this ->returnValue ($ expected ));
3434
3535 $ this ->assertEquals ($ expected , $ hostedPages ->find ('QxjWg9dNDn3TeokQWefsTrfRHvaqNuP4 ' ));
You can’t perform that action at this time.
0 commit comments