File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class TierPriceTest extends TestCase
3838 */
3939 protected function setUp (): void
4040 {
41- $ this ->productPriceOptions = $ this ->getMockForAbstractClass (ProductPriceOptionsInterface::class);
41+ $ this ->productPriceOptions = $ this ->createMock (ProductPriceOptionsInterface::class);
4242 $ this ->arrayManager = $ this ->createMock (ArrayManager::class);
4343
4444 $ this ->tierPrice = (new ObjectManager ($ this ))->getObject (TierPrice::class, [
@@ -129,7 +129,7 @@ public function testModifyMeta()
129129 $ this ->arrayManager
130130 ->expects ($ this ->once ())
131131 ->method ('merge ' )
132- ->with ($ priceWrapperPath , $ meta , $ this ->isType ( ' array ' ))
132+ ->with ($ priceWrapperPath , $ meta , $ this ->callback ( fn ( $ arg ) => is_array ( $ arg ) ))
133133 ->willReturnArgument (2 );
134134
135135 $ modifiedMeta = $ this ->tierPrice ->modifyMeta ($ meta );
You can’t perform that action at this time.
0 commit comments