$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 $app */
$app =
$apps->
first();
static::
assertNotNull($app);
static::
assertEquals('withAllowedHosts',
$app->
getName());
$allowedHosts =
$app->
getAllowedHosts();
static::
assertIsArray($allowedHosts);
static::
assertCount(2,
$allowedHosts);
static::
assertTrue(\
in_array('shopware.com',
$allowedHosts, true
));
static::
assertTrue(\
in_array('example.com',
$allowedHosts, true
));
} public function testUpdateFlowActionApp(): void
{ $manifest = Manifest::
createFromXmlFile(__DIR__ . '/../Manifest/_fixtures/test/manifest.xml'
);
$this->appLifecycle->
install($manifest, true,
$this->context
);
/** @var AppEntity $app */