Context::
createDefaultContext(),
new AppCollection([$installedApp]) );
static::
assertInstanceOf(ExtensionCollection::
class,
$extensions);
static::
assertEquals([ 'German',
'British English',
],
$extensions->
first()->
getLanguages());
static::
assertSame($installedApp->
getUpdatedAt(),
$extensions->
first()->
getUpdatedAt());
static::
assertEquals(new PermissionCollection([ PermissionStruct::
fromArray(['entity' => 'product', 'operation' => 'create'
]),
PermissionStruct::
fromArray(['entity' => 'product', 'operation' => 'read'
]),
PermissionStruct::
fromArray(['entity' => 'additional_privileges', 'operation' => 'additional:privilege'
]),
]),
$extensions->
first()->
getPermissions());
foreach ($extensions as $extension) { static::
assertEquals(ExtensionStruct::EXTENSION_TYPE_APP,
$extension->
getType());
} } private function getInstalledApp(): AppEntity
{