Skip to content

Commit e426373

Browse files
committed
MAGETWO-37935: Bugfix PR
- fixes for L1 and L3
1 parent 950b5e5 commit e426373

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

app/code/Magento/Quote/Test/Unit/Model/AddressDetailsManagementTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,13 @@ protected function setUp()
5959
$this->shippingAddressManagement = $this->getMock('Magento\Quote\Api\ShippingAddressManagementInterface');
6060
$this->paymentMethodManagement = $this->getMock('Magento\Quote\Api\PaymentMethodManagementInterface');
6161
$this->shippingMethodManagement = $this->getMock('Magento\Quote\Api\ShippingMethodManagementInterface');
62-
$this->addressDetailsFactory = $this->getMock('Magento\Quote\Model\AddressDetailsFactory', ['create'], [], '', false);
62+
$this->addressDetailsFactory = $this->getMock(
63+
'Magento\Quote\Model\AddressDetailsFactory',
64+
['create'],
65+
[],
66+
'',
67+
false
68+
);
6369
$this->dataProcessor = $this->getMock('Magento\Quote\Model\AddressAdditionalDataProcessor', [], [], '', false);
6470
$this->quoteRepository = $this->getMock('Magento\Quote\Model\QuoteRepository', [], [], '', false);
6571

@@ -72,7 +78,7 @@ protected function setUp()
7278
'shippingMethodManagement' => $this->shippingMethodManagement,
7379
'addressDetailsFactory' => $this->addressDetailsFactory,
7480
'dataProcessor' => $this->dataProcessor,
75-
'quoteRepository' => $this->quoteRepository,
81+
'quoteRepository' => $this->quoteRepository,
7682
]
7783
);
7884
}

app/code/Magento/Sales/Test/Unit/Model/Order/Payment/TransactionRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function setUp()
4242
{
4343
$this->transactionFactory = $this->getMock(
4444
'Magento\Sales\Model\Order\Payment\TransactionFactory',
45-
[],
45+
['create'],
4646
[],
4747
'',
4848
false

app/code/Magento/Sales/Test/Unit/Model/Order/PaymentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function ($value) {
182182

183183
$this->transactionFactory = $this->getMock(
184184
'Magento\Sales\Model\Order\Payment\TransactionFactory',
185-
[],
185+
['create'],
186186
[],
187187
'',
188188
false

dev/tests/integration/testsuite/Magento/Weee/Model/TaxTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function setUp()
3636
$attribute->expects($this->any())->method('getAttributeCodesByFrontendType')->will(
3737
$this->returnValue(['price'])
3838
);
39-
$attributeFactory = $this->getMock('Magento\Eav\Model\Entity\AttributeFactory', [], [], '', false);
39+
$attributeFactory = $this->getMock('Magento\Eav\Model\Entity\AttributeFactory', ['create'], [], '', false);
4040
$attributeFactory->expects($this->any())->method('create')->will($this->returnValue($attribute));
4141
$this->_model = $objectManager->create(
4242
'Magento\Weee\Model\Tax',

0 commit comments

Comments
 (0)