Skip to content

Commit 60e0b2e

Browse files
committed
Change type of find method from array to string in HostedPage.php
1 parent 002af76 commit 60e0b2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Api/HostedPages/HostedPage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

tests/Unit/Api/HostedPages/HostedPageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'));

0 commit comments

Comments
 (0)