From c0a5cccd8663441da10652acb2edafa3bf46bde6 Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Fri, 25 Sep 2015 15:19:48 +0200 Subject: [PATCH] fix(Product): fix type for remove price action Closes #153 --- src/Request/Products/Command/ProductRemovePriceAction.php | 2 +- tests/unit/Request/GenericActionTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Request/Products/Command/ProductRemovePriceAction.php b/src/Request/Products/Command/ProductRemovePriceAction.php index ed62ce16d6..36145485d2 100644 --- a/src/Request/Products/Command/ProductRemovePriceAction.php +++ b/src/Request/Products/Command/ProductRemovePriceAction.php @@ -27,7 +27,7 @@ public function fieldDefinitions() { return [ 'action' => [static::TYPE => 'string'], - 'priceId' => [static::TYPE => 'int'], + 'priceId' => [static::TYPE => 'string'], 'staged' => [static::TYPE => 'bool'], ]; } diff --git a/tests/unit/Request/GenericActionTest.php b/tests/unit/Request/GenericActionTest.php index 85599590df..0ec9b30c4d 100644 --- a/tests/unit/Request/GenericActionTest.php +++ b/tests/unit/Request/GenericActionTest.php @@ -408,7 +408,7 @@ public function actionArgumentProvider() '\Commercetools\Core\Request\Products\Command\ProductRemovePriceAction', 'ofPriceId', [ - 10 + '10' ] ], [