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 */
$app =
$this->appRepository->
search(new Criteria(),
$this->context
)->
first();
$appFlowActions =
$this->
getAppFlowActions($app->
getId());
static::
assertIsArray($appFlowActions);
static::
assertArrayHasKey(0,
$appFlowActions);
$newManifest = Manifest::
createFromXmlFile(__DIR__ . '/../Manifest/_fixtures/test/manifest1_1_0.xml'
);
$this->appLifecycle->
update( $newManifest,
[ 'id' =>
$app->
getId(),
'roleId' =>
$app->
getAclRoleId(),
],
$this->context
);