Skip to content

Commit 3c759b5

Browse files
committed
MAGETWO-36378: Magento\Quote\Api\GuestCartManagement
- Remove $quoteRepository from the parameters of GuestCartManagement::__construct - Update unit test accordingly
1 parent 665ff19 commit 3c759b5

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ class GuestCartManagement implements GuestCartManagementInterface
2525
*/
2626
protected $quoteManagement;
2727

28-
/**
29-
* @var QuoteRepository
30-
*/
31-
protected $quoteRepository;
32-
3328
/**
3429
* @var QuoteIdMaskFactory
3530
*/
@@ -39,17 +34,14 @@ class GuestCartManagement implements GuestCartManagementInterface
3934
* Initialize dependencies.
4035
*
4136
* @param CartManagementInterface $quoteManagement
42-
* @param QuoteRepository $quoteRepository
4337
* @param QuoteIdMaskFactory $quoteIdMaskFactory
4438
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
4539
*/
4640
public function __construct(
4741
CartManagementInterface $quoteManagement,
48-
QuoteRepository $quoteRepository,
4942
QuoteIdMaskFactory $quoteIdMaskFactory
5043
) {
5144
$this->quoteManagement = $quoteManagement;
52-
$this->quoteRepository = $quoteRepository;
5345
$this->quoteIdMaskFactory = $quoteIdMaskFactory;
5446
}
5547

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ protected function setUp()
4747
true,
4848
[]
4949
);
50-
$this->quoteRepositoryMock = $this->getMock('Magento\Quote\Model\QuoteRepository', [], [], '', false);
5150
$this->quoteIdMaskFactoryMock = $this->getMock(
5251
'Magento\Quote\Model\QuoteIdMaskFactory',
5352
['create'],
@@ -67,7 +66,6 @@ protected function setUp()
6766
'Magento\Quote\Model\GuestCart\GuestCartManagement',
6867
[
6968
'quoteManagement' => $this->quoteManagementMock,
70-
'quoteRepository' => $this->quoteRepositoryMock,
7169
'quoteIdMaskFactory' => $this->quoteIdMaskFactoryMock
7270
]
7371
);

0 commit comments

Comments
 (0)