Skip to content

Commit 7fa8c4f

Browse files
committed
BUG#AC-3157: Grouped product with tax throws exception with PHP 8.1
1 parent 2f02e91 commit 7fa8c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Tax/Test/Unit/Pricing/Render/AdjustmentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public function testGetDataPriceType(): void
372372
$this->assertEquals('basePrice', $this->model->getDataPriceType());
373373
$amountRender->expects($this->atLeastOnce())
374374
->method('getPriceType')
375-
->willReturn('anythingElse');
375+
->willReturn(null);
376376
$this->model->render($amountRender, []);
377377
//no exception thrown
378378
$this->assertIsString($this->model->getDataPriceType());

0 commit comments

Comments
 (0)