Skip to content

Commit 3fe3f5c

Browse files
committed
Merge branch 'develop' into api_GiftMessage
2 parents 1f54e55 + e622a54 commit 3fe3f5c

File tree

5 files changed

+359
-5
lines changed

5 files changed

+359
-5
lines changed

app/code/Magento/Quote/Api/ShippingMethodManagementInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function set($cartId, $carrierCode, $methodCode);
2525
* Returns selected shipping method for a specified quote.
2626
*
2727
* @param int $cartId The shopping cart ID.
28-
* @return \Magento\Quote\Api\Data\ShippingMethodInterface|null Shipping method.
28+
* @return \Magento\Quote\Api\Data\ShippingMethodInterface Shipping method.
2929
* @throws \Magento\Framework\Exception\NoSuchEntityException The specified shopping cart does not exist.
3030
* @throws \Magento\Framework\Exception\StateException The shipping address is not set.
3131
*/

app/code/Magento/Quote/Model/QuoteManagement.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public function assignCustomer($cartId, $customerId, $storeId)
169169
$this->quoteRepository->getForCustomer($customerId);
170170
throw new StateException('Cannot assign customer to the given cart. Customer already has active cart.');
171171
} catch (\Magento\Framework\Exception\NoSuchEntityException $e) {
172+
172173
}
173174

174175
$quote->setCustomer($customer);
@@ -205,8 +206,9 @@ protected function createCustomerCart($storeId)
205206

206207
try {
207208
$this->quoteRepository->getActiveForCustomer($this->userContext->getUserId());
208-
} catch (\Magento\Framework\Exception\NoSuchEntityException $e) {
209209
throw new CouldNotSaveException('Cannot create quote');
210+
} catch (\Magento\Framework\Exception\NoSuchEntityException $e) {
211+
210212
}
211213

212214
/** @var \Magento\Quote\Model\Quote $quote */

dev/tests/api-functional/testsuite/Magento/Quote/Api/CartManagementInterfaceTest.php renamed to dev/tests/api-functional/testsuite/Magento/Quote/Api/CartManagementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Magento\TestFramework\TestCase\WebapiAbstract;
1010
use Magento\Webapi\Model\Rest\Config as RestConfig;
1111

12-
class CartManagementInterfaceTest extends WebapiAbstract
12+
class CartManagementTest extends WebapiAbstract
1313
{
1414
const SERVICE_VERSION = 'V1';
1515
const SERVICE_NAME = 'quoteCartManagementV1';

dev/tests/api-functional/testsuite/Magento/Quote/Api/CartRepositoryInterfaceTest.php renamed to dev/tests/api-functional/testsuite/Magento/Quote/Api/CartRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Magento\TestFramework\TestCase\WebapiAbstract;
1515
use Magento\Webapi\Model\Rest\Config as RestConfig;
1616

17-
class CartRepositoryInterfaceTest extends WebapiAbstract
17+
class CartRepositoryTest extends WebapiAbstract
1818
{
1919
/**
2020
* @var ObjectManager

0 commit comments

Comments
 (0)