$appEntity =
$apps->
first();
static::
assertNotNull($appEntity);
static::
assertCount(0,
$appEntity->
getModules());
$webhookCollection =
$appEntity->
getWebhooks();
static::
assertInstanceOf(WebhookCollection::
class,
$webhookCollection);
static::
assertCount(0,
$webhookCollection);
} public function testInstallWithSystemDefaultLanguageNotProvidedByApp(): void
{ $this->
setNewSystemLanguage('nl-NL'
);
$this->
setNewSystemLanguage('en-GB'
);
$manifest = Manifest::
createFromXmlFile(__DIR__ . '/../Manifest/_fixtures/test/manifest.xml'
);
$this->appLifecycle->
install($manifest, true,
$this->context
);
/** @var AppCollection $apps */
$apps =
$this->appRepository->
search(new Criteria(),
$this->context
)->
getEntities();
static::
assertCount(1,
$apps);
/** @var AppEntity $appEntity */
$appEntity =
$apps->
first();