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
108108 {
109109 $ storeId = 1 ;
110110 $ this ->quoteMock ->expects ($ this ->once ())->method ('getStoreId ' )->willReturn ($ storeId );
111+ $ this ->quoteMock ->expects ($ this ->never ())->method ('getShippingAddress ' );
111112
112113 $ addressMock = $ this ->getMockObject (Address::class, [
113114 'all_items ' => [],
@@ -168,6 +169,7 @@ private function getMockObject($className, array $objectState)
168169
169170 public function testFetch ()
170171 {
172+ $ this ->quoteMock ->expects ($ this ->never ())->method ('getShippingAddress ' );
171173 $ value = 42 ;
172174 $ total = new Total ();
173175 $ total ->setShippingInclTax ($ value );
@@ -181,6 +183,8 @@ public function testFetch()
181183
182184 public function testFetchWithZeroShipping ()
183185 {
186+ $ this ->quoteMock ->expects ($ this ->never ())->method ('getShippingAddress ' );
187+
184188 $ value = 0 ;
185189 $ total = new Total ();
186190 $ total ->setShippingInclTax ($ value );
You can’t perform that action at this time.
0 commit comments