AppLifecycle example

static::assertCount(1, $appRepository->upserts[0]);

        static::assertEquals([['id' => $appId, 'configurable' => false, 'allowDisable' => true]]$appRepository->upserts[1]);
    }

    private function getAppLifecycle(
        EntityRepository $appRepository,
        EntityRepository $languageRepository,
        ?AppAdministrationSnippetPersister $appAdministrationSnippetPersisterMock,
        AbstractAppLoader $appLoader
    ): AppLifecycle {
        return new AppLifecycle(
            $appRepository,
            $this->createMock(PermissionPersister::class),
            $this->createMock(CustomFieldPersister::class),
            $this->createMock(ActionButtonPersister::class),
            $this->createMock(TemplatePersister::class),
            $this->createMock(ScriptPersister::class),
            $this->createMock(WebhookPersister::class),
            $this->createMock(PaymentMethodPersister::class),
            $this->createMock(TaxProviderPersister::class),
            $this->createMock(RuleConditionPersister::class),
            $this->createMock(CmsBlockPersister::class),
            
Home | Imprint | This part of the site doesn't use cookies.