use Shopware\Core\Framework\Log\Package;
use Shopware\Core\System\SalesChannel\SalesChannelContext;
/**
* @internal
*/
#[Package('inventory')]
class ProductListingResolvePreviewEventTest extends TestCase
{ public function testReplace(): void
{ $event =
new ProductListingResolvePreviewEvent( $this->
createMock(SalesChannelContext::
class),
new Criteria(),
['p1' => 'p1'
],
true
);
$event->
replace('p1', 'p2'
);
static::
assertSame(['p1' => 'p2'
],
$event->
getMapping());
} public function testReplaceException(): void
{