Skip to content

Commit 6e3f320

Browse files
committed
added unit test assertions
1 parent 7a50fb6 commit 6e3f320

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Tax/Test/Unit/Model/Sales/Total/Quote/ShippingTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)