Skip to content

Commit 2243859

Browse files
committed
ACP2E-3541: "Something went wrong" error on checkout for inactive company
1 parent deb6d24 commit 2243859

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

app/code/Magento/Theme/etc/frontend/di.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2015 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

dev/tests/api-functional/testsuite/Magento/Quote/Api/GuestShipmentEstimationTest.php

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2016 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Quote\Api;
77

@@ -25,6 +25,32 @@ protected function setUp(): void
2525
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
2626
}
2727

28+
/**
29+
* @return void
30+
*/
31+
public function testNotAuthorized(): void
32+
{
33+
$serviceInfo = [
34+
'rest' => [
35+
'resourcePath' => '/V1/carts/mine/estimate-shipping-methods',
36+
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_POST,
37+
'token' => null,
38+
]
39+
];
40+
41+
$requestData = [
42+
'address' => [
43+
'country_id' => "US",
44+
'postcode' => null,
45+
'region' => null,
46+
'region_id' => null
47+
],
48+
];
49+
50+
$this->expectExceptionMessage("The consumer isn't authorized to access %resources.");
51+
$this->_webApiCall($serviceInfo, $requestData);
52+
}
53+
2854
/**
2955
* @magentoApiDataFixture Magento/SalesRule/_files/cart_rule_free_shipping.php
3056
* @magentoApiDataFixture Magento/Sales/_files/quote.php

0 commit comments

Comments
 (0)