/**
* @internal
*/
#[Package('sales-channel')]
class SalesChannelDefinitionInstanceRegistryTest extends TestCase
{ use IntegrationTestBehaviour;
public function testRegister(): void
{ $registry =
new SalesChannelDefinitionInstanceRegistry( 'sales_channel_definition.',
new Container(),
[],
[] );
$registry->
register(new ProductDefinition());
static::
assertInstanceOf(ProductDefinition::
class,
$registry->
get(ProductDefinition::
class));
static::
assertTrue($registry->
has(ProductDefinition::ENTITY_NAME
));
static::
assertInstanceOf(ProductDefinition::
class,
$registry->
getByEntityName(ProductDefinition::ENTITY_NAME
));