Skip to content

Commit 716c937

Browse files
committed
MAGETWO-36382: Magento\Quote\Api\GuestBillingAddressManagement
- usage of interface
1 parent f2ddf34 commit 716c937

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

app/code/Magento/Quote/Model/GuestCart/GuestBillingAddressManagement.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
* Copyright © 2015 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
namespace Magento\Quote\Model\GuestCart;
87

98
use Magento\Quote\Api\GuestBillingAddressManagementInterface;
10-
use Magento\Quote\Model\BillingAddressManagement;
9+
use Magento\Quote\Api\BillingAddressManagementInterface;
1110
use Magento\Quote\Model\QuoteIdMask;
1211
use Magento\Quote\Model\QuoteIdMaskFactory;
1312

@@ -22,18 +21,18 @@ class GuestBillingAddressManagement implements GuestBillingAddressManagementInte
2221
private $quoteIdMaskFactory;
2322

2423
/**
25-
* @var BillingAddressManagement
24+
* @var BillingAddressManagementInterface
2625
*/
2726
private $billingAddressManagement;
2827

2928
/**
3029
* Constructs a quote billing address service object.
3130
*
32-
* @param BillingAddressManagement $billingAddressManagement
31+
* @param BillingAddressManagementInterface $billingAddressManagement
3332
* @param QuoteIdMaskFactory $quoteIdMaskFactory
3433
*/
3534
public function __construct(
36-
BillingAddressManagement $billingAddressManagement,
35+
BillingAddressManagementInterface $billingAddressManagement,
3736
QuoteIdMaskFactory $quoteIdMaskFactory
3837
) {
3938
$this->quoteIdMaskFactory = $quoteIdMaskFactory;

app/code/Magento/Quote/Test/Unit/Model/GuestCart/GuestBillingAddressManagementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function setUp()
5151
$objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
5252
$this->addressMock = $this->getMock('\Magento\Quote\Model\Quote\Address', [], [], '', false);
5353
$this->billingAddressManagementMock = $this->getMock(
54-
'Magento\Quote\Model\BillingAddressManagement',
54+
'Magento\Quote\Api\BillingAddressManagementInterface',
5555
[],
5656
[],
5757
'',

0 commit comments

Comments
 (0)