/**
* PHPStan will complain that we should specify the generic type if we hint that class strings
* of EntityCollection should be returned.
*
* @return class-string
*/ publicfunctiongetCollectionClass(): string { return EntityCollection::class; }
#[Package('buyers-experience')]
classStructEncoderTestextends TestCase { /**
* Regression test where the cheapest price and cheapest price container were exposed because the StructEncoder did not consider sales channel definitions
*/ publicfunctiontestCheapestPricesAreNotExposed(): void { $product = newSalesChannelProductEntity(); $product->internalSetEntityData('product', newFieldVisibility([]));