Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Fix
- Fix issue with cart btn if WebComponents library is disabled
- Fix brand suggestion redirection url
- Export the real product salability as Availability

## [v5.3.1] - 2026.07.02
### Fix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class AttributeValuesExtractorTest extends TestCase
/** @var NumberFormatter|MockObject */
private MockObject $numberFormatter;

/** @var MockObject|FilterInterface */
private MockObject $filterMock;

public function test_it_returns_scalar_value()
{
$attributeValue = 'Value';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Magento\Inventory\Model\SourceItem\Command\GetSourceItemsBySku;
use Omikron\Factfinder\Api\Filter\FilterInterface;
use Omikron\Factfinder\Model\Export\Catalog\Entity\ProductVariationFactory;
use Omikron\Factfinder\Model\Export\Catalog\ProductAvailability;
use Omikron\Factfinder\Model\Formatter\NumberFormatter;
use Omikron\Factfinder\Test\TestHelper;
use PHPUnit\Framework\MockObject\MockObject;
Expand Down Expand Up @@ -106,6 +107,8 @@ protected function setUp(): void
->disableOriginalConstructor()
->getMock();

$productAvailabilityMock = $this->createMock(ProductAvailability::class);

$this->configurableDataProvider = new ConfigurableDataProvider(
$this->productMock,
$this->numberFormatMock,
Expand All @@ -114,9 +117,7 @@ protected function setUp(): void
$this->variantFactoryMock,
$this->repositoryMock,
$this->builderMock,
$this->createConfiguredMock(GetSourceItemsBySku::class, [
'execute' => [$this->createConfiguredMock(SourceItem::class, ['getStatus' => 1])]
]),
$productAvailabilityMock
);
}
}
Loading