Skip to content

Commit 3231829

Browse files
authored
Merge pull request #220 from optomal7/sku-update
Typo fix in SKU update function
2 parents ce672e6 + 8cc2dae commit 3231829

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
@@ -1208,7 +1208,7 @@ public static function createSku($productId, $object)
12081208
*/
12091209
public static function updateSku($id, $object)
12101210
{
1211-
return self::updateResource('/product/skus/' . $id, $object);
1211+
return self::updateResource('/products/skus/' . $id, $object);
12121212
}
12131213

12141214
/**

test/Unit/Api/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ public function testUpdatingASkuPutsToTheSkuResource()
417417
{
418418
$this->connection->expects($this->once())
419419
->method('put')
420-
->with($this->basePath . '/product/skus/1', (object)array());
420+
->with($this->basePath . '/products/skus/1', (object)array());
421421

422422
Client::updateSku(1, array());
423423
}

0 commit comments

Comments
 (0)