Skip to content

Commit 3b10413

Browse files
authored
Merge pull request #235 from mikebaker85/master
update getProductCustomFields() endpoint
2 parents a4cb860 + e042c44 commit 3b10413

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Bigcommerce/Api/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ public static function getProductImages($id)
495495
*/
496496
public static function getProductCustomFields($id)
497497
{
498-
return self::getCollection('/products/' . $id . '/customfields/', 'ProductCustomField');
498+
return self::getCollection('/products/' . $id . '/customfields', 'ProductCustomField');
499499
}
500500

501501
/**

test/Unit/Api/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ public function testGettingProductCustomFieldsReturnsCollectionOfProductCustomFi
449449
{
450450
$this->connection->expects($this->once())
451451
->method('get')
452-
->with($this->basePath . '/products/1/customfields/', false)
452+
->with($this->basePath . '/products/1/customfields', false)
453453
->will($this->returnValue(array(array(), array())));
454454

455455
$collection = Client::getProductCustomFields(1);

0 commit comments

Comments
 (0)