Skip to content

Commit eb59dda

Browse files
AC-15050: PHPUnit 12 Upgrade | Static Failure Fix
1 parent b3fbe9c commit eb59dda

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier/TierPriceTest.php

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

0 commit comments

Comments
 (0)