@@ -42,19 +42,19 @@ class ShippingTest extends \PHPUnit_Framework_TestCase
42
42
protected function setUp ()
43
43
{
44
44
$ objectManager = new \Magento \Framework \TestFramework \Unit \Helper \ObjectManager ($ this );
45
- $ this ->scopeConfigMock = $ this ->getMock (
46
- \Magento \Framework \App \Config \ScopeConfigInterface::class,
47
- [],
48
- [],
49
- '' ,
50
- false
45
+ $ this ->scopeConfigMock = $ this ->getMock (
46
+ \Magento \Framework \App \Config \ScopeConfigInterface::class,
47
+ [],
48
+ [],
49
+ '' ,
50
+ false
51
51
);
52
52
$ this ->multiShippingMock =
53
53
$ this ->getMock (\Magento \Multishipping \Model \Checkout \Type \Multishipping::class, [], [], '' , false );
54
54
$ this ->priceCurrencyMock =
55
55
$ this ->getMock (\Magento \Framework \Pricing \PriceCurrencyInterface::class, [], [], '' , false );
56
56
$ this ->taxHelperMock = $ this ->getMock (\Magento \Tax \Helper \Data::class, [], [], '' , false );
57
- $ this ->model = $ objectManager ->getObject (
57
+ $ this ->model = $ objectManager ->getObject (
58
58
\Magento \Multishipping \Block \Checkout \Shipping::class,
59
59
[
60
60
'multishipping ' => $ this ->multiShippingMock ,
@@ -76,7 +76,7 @@ public function testGetAddresses()
76
76
77
77
public function testGetAddressShippingMethod ()
78
78
{
79
- $ addressMock = $ this ->getMock (
79
+ $ addressMock = $ this ->getMock (
80
80
\Magento \Quote \Model \Quote \Address::class,
81
81
['getShippingMethod ' , '__wakeup ' ],
82
82
[],
@@ -90,7 +90,7 @@ public function testGetAddressShippingMethod()
90
90
91
91
public function testGetShippingRates ()
92
92
{
93
- $ addressMock = $ this ->getMock (
93
+ $ addressMock = $ this ->getMock (
94
94
\Magento \Quote \Model \Quote \Address::class,
95
95
['getGroupedAllShippingRates ' , '__wakeup ' ],
96
96
[],
@@ -107,30 +107,28 @@ public function testGetCarrierName()
107
107
{
108
108
$ carrierCode = 'some carrier code ' ;
109
109
$ name = 'some name ' ;
110
- $ this ->scopeConfigMock ->expects ($ this ->once ())->method ('getValue ' )->with ('carriers/ ' . $ carrierCode . '/title ' ,
111
- \Magento \Store \Model \ScopeInterface::SCOPE_STORE
112
- )->will ($ this ->returnValue ($ name
113
- )
114
- );
110
+ $ this ->scopeConfigMock ->expects ($ this ->once ())->method ('getValue ' )->with (
111
+ 'carriers/ ' . $ carrierCode . '/title ' ,
112
+ \Magento \Store \Model \ScopeInterface::SCOPE_STORE
113
+ )->will ($ this ->returnValue ($ name ));
115
114
116
115
$ this ->assertEquals ($ name , $ this ->model ->getCarrierName ($ carrierCode ));
117
116
}
118
117
119
118
public function testGetCarrierNameWithEmptyName ()
120
119
{
121
120
$ carrierCode = 'some carrier code ' ;
122
- $ this ->scopeConfigMock ->expects ($ this ->once ())->method ('getValue ' )->with ('carriers/ ' . $ carrierCode . '/title ' ,
123
- \Magento \Store \Model \ScopeInterface::SCOPE_STORE
124
- )->will ($ this ->returnValue (null
125
- )
126
- );
121
+ $ this ->scopeConfigMock ->expects ($ this ->once ())->method ('getValue ' )->with (
122
+ 'carriers/ ' . $ carrierCode . '/title ' ,
123
+ \Magento \Store \Model \ScopeInterface::SCOPE_STORE
124
+ )->will ($ this ->returnValue (null ));
127
125
128
126
$ this ->assertEquals ($ carrierCode , $ this ->model ->getCarrierName ($ carrierCode ));
129
127
}
130
128
131
129
public function testGetShippingPrice ()
132
130
{
133
- $ addressMock = $ this ->getMock (
131
+ $ addressMock = $ this ->getMock (
134
132
\Magento \Quote \Model \Quote \Address::class,
135
133
['getQuote ' , '__wakeup ' ],
136
134
[],
0 commit comments