Skip to content

Commit

Permalink
Merge pull request #235 from mikebaker85/master
Browse files Browse the repository at this point in the history
update getProductCustomFields() endpoint
  • Loading branch information
bookernath authored Sep 14, 2018
2 parents a4cb860 + e042c44 commit 3b10413
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Bigcommerce/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public static function getProductImages($id)
*/
public static function getProductCustomFields($id)
{
return self::getCollection('/products/' . $id . '/customfields/', 'ProductCustomField');
return self::getCollection('/products/' . $id . '/customfields', 'ProductCustomField');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/Api/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ public function testGettingProductCustomFieldsReturnsCollectionOfProductCustomFi
{
$this->connection->expects($this->once())
->method('get')
->with($this->basePath . '/products/1/customfields/', false)
->with($this->basePath . '/products/1/customfields', false)
->will($this->returnValue(array(array(), array())));

$collection = Client::getProductCustomFields(1);
Expand Down

0 comments on commit 3b10413

Please sign in to comment.