@@ -124,7 +124,7 @@ class QuoteManagementTest extends \PHPUnit_Framework_TestCase
124
124
/**
125
125
* @var \Magento\Quote\Model\Quote\Validator\MinimumOrderAmount\ValidationMessage
126
126
*/
127
- protected $ minimumAmountErrorMessage ;
127
+ private $ minimumAmountMessage ;
128
128
129
129
/**
130
130
* @var \PHPUnit_Framework_MockObject_MockObject
@@ -256,7 +256,7 @@ protected function setUp()
256
256
false
257
257
);
258
258
259
- $ this ->minimumAmountErrorMessage = $ this ->getMock (
259
+ $ this ->minimumAmountMessage = $ this ->getMock (
260
260
\Magento \Quote \Model \Quote \Validator \MinimumOrderAmount \ValidationMessage::class,
261
261
['getMessage ' ],
262
262
[],
@@ -288,7 +288,7 @@ protected function setUp()
288
288
'customerSession ' => $ this ->customerSessionMock ,
289
289
'accountManagement ' => $ this ->accountManagementMock ,
290
290
'quoteFactory ' => $ this ->quoteFactoryMock ,
291
- 'minimumAmountErrorMessage ' => $ this ->minimumAmountErrorMessage
291
+ 'minimumAmountMessage ' => $ this ->minimumAmountMessage
292
292
]
293
293
);
294
294
@@ -724,7 +724,7 @@ public function testPlaceOrderIfCustomerIsGuest()
724
724
$ this ->quoteMock ->expects ($ this ->once ())->method ('getIsMultiShipping ' )->willReturn (false );
725
725
$ this ->quoteMock ->expects ($ this ->once ())->method ('validateMinimumAmount ' )->with (false )->willReturn (true );
726
726
727
- $ this ->minimumAmountErrorMessage ->expects ($ this ->never ())->method ('getMessage ' );
727
+ $ this ->minimumAmountMessage ->expects ($ this ->never ())->method ('getMessage ' );
728
728
729
729
$ addressMock = $ this ->getMock (\Magento \Quote \Model \Quote \Address::class, ['getEmail ' ], [], '' , false );
730
730
$ addressMock ->expects ($ this ->once ())->method ('getEmail ' )->willReturn ($ email );
@@ -760,7 +760,7 @@ public function testPlaceOrderIfCustomerIsGuest()
760
760
'customerSession ' => $ this ->customerSessionMock ,
761
761
'accountManagement ' => $ this ->accountManagementMock ,
762
762
'quoteFactory ' => $ this ->quoteFactoryMock ,
763
- 'minimumAmountErrorMessage ' => $ this ->minimumAmountErrorMessage
763
+ 'minimumAmountMessage ' => $ this ->minimumAmountMessage
764
764
]
765
765
);
766
766
$ orderMock = $ this ->getMock (
@@ -819,7 +819,7 @@ public function testPlaceOrder()
819
819
'customerSession ' => $ this ->customerSessionMock ,
820
820
'accountManagement ' => $ this ->accountManagementMock ,
821
821
'quoteFactory ' => $ this ->quoteFactoryMock ,
822
- 'minimumAmountErrorMessage ' => $ this ->minimumAmountErrorMessage
822
+ 'minimumAmountMessage ' => $ this ->minimumAmountMessage
823
823
]
824
824
);
825
825
$ orderMock = $ this ->getMock (
@@ -854,7 +854,7 @@ public function testPlaceOrder()
854
854
$ this ->quoteMock ->expects ($ this ->once ())->method ('getIsMultiShipping ' )->willReturn (false );
855
855
$ this ->quoteMock ->expects ($ this ->once ())->method ('validateMinimumAmount ' )->with (false )->willReturn (true );
856
856
857
- $ this ->minimumAmountErrorMessage ->expects ($ this ->never ())->method ('getMessage ' );
857
+ $ this ->minimumAmountMessage ->expects ($ this ->never ())->method ('getMessage ' );
858
858
859
859
$ service ->expects ($ this ->once ())->method ('submit ' )->willReturn ($ orderMock );
860
860
@@ -894,7 +894,7 @@ public function testPlaceOrderWithViolationOfMinimumAmount()
894
894
$ this ->quoteMock ->expects ($ this ->once ())->method ('getIsMultiShipping ' )->willReturn (false );
895
895
$ this ->quoteMock ->expects ($ this ->once ())->method ('validateMinimumAmount ' )->with (false )->willReturn (false );
896
896
897
- $ this ->minimumAmountErrorMessage ->expects ($ this ->once ())
897
+ $ this ->minimumAmountMessage ->expects ($ this ->once ())
898
898
->method ('getMessage ' )
899
899
->willReturn (__ ('Incorrect amount ' ));
900
900
@@ -928,7 +928,7 @@ public function testPlaceOrderWithViolationOfMinimumAmount()
928
928
'customerSession ' => $ this ->customerSessionMock ,
929
929
'accountManagement ' => $ this ->accountManagementMock ,
930
930
'quoteFactory ' => $ this ->quoteFactoryMock ,
931
- 'minimumAmountErrorMessage ' => $ this ->minimumAmountErrorMessage
931
+ 'minimumAmountMessage ' => $ this ->minimumAmountMessage
932
932
]
933
933
);
934
934
0 commit comments