File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
app/code/Magento/Tax/Test/Unit/Model/Sales/Total/Quote Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ public function testCollectDoesNotCalculateTaxIfThereIsNoItemsRelatedToGivenAddr
108
108
{
109
109
$ storeId = 1 ;
110
110
$ this ->quoteMock ->expects ($ this ->once ())->method ('getStoreId ' )->willReturn ($ storeId );
111
+ $ this ->quoteMock ->expects ($ this ->never ())->method ('getShippingAddress ' );
111
112
112
113
$ addressMock = $ this ->getMockObject (Address::class, [
113
114
'all_items ' => [],
@@ -168,6 +169,7 @@ private function getMockObject($className, array $objectState)
168
169
169
170
public function testFetch ()
170
171
{
172
+ $ this ->quoteMock ->expects ($ this ->never ())->method ('getShippingAddress ' );
171
173
$ value = 42 ;
172
174
$ total = new Total ();
173
175
$ total ->setShippingInclTax ($ value );
@@ -181,6 +183,8 @@ public function testFetch()
181
183
182
184
public function testFetchWithZeroShipping ()
183
185
{
186
+ $ this ->quoteMock ->expects ($ this ->never ())->method ('getShippingAddress ' );
187
+
184
188
$ value = 0 ;
185
189
$ total = new Total ();
186
190
$ total ->setShippingInclTax ($ value );
You can’t perform that action at this time.
0 commit comments