File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Test/Unit/Model/GuestCart Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 8
8
use Magento \Quote \Api \GuestShippingAddressManagementInterface ;
9
9
use Magento \Quote \Model \QuoteIdMask ;
10
10
use Magento \Quote \Model \QuoteIdMaskFactory ;
11
- use Magento \Quote \Model \ShippingAddressManagement ;
12
-
11
+ use Magento \Quote \Api \ShippingAddressManagementInterface ;
13
12
/**
14
13
* Shipping address management class for guest carts.
15
14
*/
@@ -21,18 +20,18 @@ class GuestShippingAddressManagement implements GuestShippingAddressManagementIn
21
20
protected $ quoteIdMaskFactory ;
22
21
23
22
/**
24
- * @var ShippingAddressManagement
23
+ * @var ShippingAddressManagementInterface
25
24
*/
26
25
protected $ shippingAddressManagement ;
27
26
28
27
/**
29
28
* Constructs a quote shipping address write service object.
30
29
*
31
- * @param ShippingAddressManagement $shippingAddressManagement
30
+ * @param ShippingAddressManagementInterface $shippingAddressManagement
32
31
* @param QuoteIdMaskFactory $quoteIdMaskFactory
33
32
*/
34
33
public function __construct (
35
- ShippingAddressManagement $ shippingAddressManagement ,
34
+ ShippingAddressManagementInterface $ shippingAddressManagement ,
36
35
QuoteIdMaskFactory $ quoteIdMaskFactory
37
36
) {
38
37
$ this ->shippingAddressManagement = $ shippingAddressManagement ;
Original file line number Diff line number Diff line change 4
4
* Copyright © 2015 Magento. All rights reserved.
5
5
* See COPYING.txt for license details.
6
6
*/
7
-
8
7
namespace Magento \Quote \Test \Unit \Model \GuestCart ;
9
8
10
9
class GuestShippingAddressManagementTest extends \PHPUnit_Framework_TestCase
@@ -49,7 +48,7 @@ protected function setUp()
49
48
$ objectManager = new \Magento \Framework \TestFramework \Unit \Helper \ObjectManager ($ this );
50
49
51
50
$ this ->shippingAddressManagementMock = $ this ->getMock (
52
- 'Magento\Quote\Model\ShippingAddressManagement ' ,
51
+ 'Magento\Quote\Api\ShippingAddressManagementInterface ' ,
53
52
[],
54
53
[],
55
54
'' ,
You can’t perform that action at this time.
0 commit comments