$installedExtensions =
$this->extensionDataProvider->
getInstalledExtensions($this->context, true
);
$installedExtension =
$installedExtensions->
get('TestApp'
);
static::
assertInstanceOf(ExtensionStruct::
class,
$installedExtension);
static::
assertNull($installedExtension->
getId());
static::
assertEquals('Swag App Test',
$installedExtension->
getLabel());
} public function testGetAppEntityFromTechnicalName(): void
{ $app =
$this->extensionDataProvider->
getAppEntityFromTechnicalName('TestApp',
$this->context
);
static::
assertEquals('TestApp',
$app->
getName());
} public function testGetAppEntityFromId(): void
{ $installedApp =
$this->extensionDataProvider->
getAppEntityFromTechnicalName('TestApp',
$this->context
);
$app =
$this->extensionDataProvider->
getAppEntityFromId($installedApp->
getId(),
$this->context
);
static::
assertEquals( $installedApp,