Skip to content

Commit

Permalink
Fixed static test
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-chandra3197 committed Jan 10, 2020
1 parent ee152fc commit 918fd02
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,16 @@ public function testExecute(): void
['entity_id', $originalProductId]
]
);
$this->assertEquals($this->assertNotNull($newTierPrices[0]['price']),
$this->tierPriceResource->expects($this->atLeastOnce())
->method('updateValues')->with($newTierPrices, $originalTierPrices)->willReturn(true));
$this->assertEquals($this->assertNull($newTierPrices[0]['price']),
$this->tierPriceResource->expects($this->atLeastOnce())
->method('updateValues')->with($newTierPrices, $originalTierPrices)->willReturn(false));
$this->assertEquals(
$this->assertNotNull($newTierPrices[0]['price']),
$this->tierPriceResource->expects($this->atLeastOnce())
->method('updateValues')->with($newTierPrices, $originalTierPrices)->willReturn(true)
);
$this->assertEquals(
$this->assertNull($newTierPrices[0]['price']),
$this->tierPriceResource->expects($this->atLeastOnce())
->method('updateValues')->with($newTierPrices, $originalTierPrices)->willReturn(false)
);
$product->expects($this->atLeastOnce())->method('getStoreId')->willReturn(0);
$product->expects($this->atLeastOnce())->method('setData')->with('tier_price_changed', 1);
$store = $this->getMockBuilder(\Magento\Store\Api\Data\StoreInterface::class)
Expand Down

0 comments on commit 918fd02

Please sign in to comment.