File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
app/code/Magento/Catalog/Test/Unit/Model/Attribute/Backend/TierPrice Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -128,12 +128,16 @@ public function testExecute(): void
128
128
['entity_id ' , $ originalProductId ]
129
129
]
130
130
);
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
+ );
137
141
$ product ->expects ($ this ->atLeastOnce ())->method ('getStoreId ' )->willReturn (0 );
138
142
$ product ->expects ($ this ->atLeastOnce ())->method ('setData ' )->with ('tier_price_changed ' , 1 );
139
143
$ store = $ this ->getMockBuilder (\Magento \Store \Api \Data \StoreInterface::class)
You can’t perform that action at this time.
0 commit comments