getAppFlowEvents example

$appFlowActionId = $this->getAppFlowActionIdFromSequence($sequenceId);
        static::assertEquals($appFlowActionId$flowActions[0]['id']);
    }

    public function testUpdateFlowEventApp(): 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();

        $appFlowEvents = $this->getAppFlowEvents($app->getId());
        static::assertIsArray($appFlowEvents);
        static::assertArrayHasKey(0, $appFlowEvents);

        $newManifest = Manifest::createFromXmlFile(__DIR__ . '/../Manifest/_fixtures/test/manifest1_1_0.xml');
        $this->appLifecycle->update(
            $newManifest,
            [
                'id' => $app->getId(),
                'roleId' => $app->getAclRoleId(),
            ],
            $this->context
        );
Home | Imprint | This part of the site doesn't use cookies.