Skip to content

Commit 918fd02

Browse files
Fixed static test
1 parent ee152fc commit 918fd02

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Attribute/Backend/TierPrice/UpdateHandlerTest.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,16 @@ public function testExecute(): void
128128
['entity_id', $originalProductId]
129129
]
130130
);
131-
$this->assertEquals($this->assertNotNull($newTierPrices[0]['price']),
132-
$this->tierPriceResource->expects($this->atLeastOnce())
133-
->method('updateValues')->with($newTierPrices, $originalTierPrices)->willReturn(true));
134-
$this->assertEquals($this->assertNull($newTierPrices[0]['price']),
135-
$this->tierPriceResource->expects($this->atLeastOnce())
136-
->method('updateValues')->with($newTierPrices, $originalTierPrices)->willReturn(false));
131+
$this->assertEquals(
132+
$this->assertNotNull($newTierPrices[0]['price']),
133+
$this->tierPriceResource->expects($this->atLeastOnce())
134+
->method('updateValues')->with($newTierPrices, $originalTierPrices)->willReturn(true)
135+
);
136+
$this->assertEquals(
137+
$this->assertNull($newTierPrices[0]['price']),
138+
$this->tierPriceResource->expects($this->atLeastOnce())
139+
->method('updateValues')->with($newTierPrices, $originalTierPrices)->willReturn(false)
140+
);
137141
$product->expects($this->atLeastOnce())->method('getStoreId')->willReturn(0);
138142
$product->expects($this->atLeastOnce())->method('setData')->with('tier_price_changed', 1);
139143
$store = $this->getMockBuilder(\Magento\Store\Api\Data\StoreInterface::class)

0 commit comments

Comments
 (0)