getAppLoaderMock example


            ],
        ];

        $manifest = Manifest::createFromXmlFile(__DIR__ . '/../_fixtures/manifest.xml');

        $appRepository = $this->getAppRepositoryMock($appEntities);
        $appLifecycle = $this->getAppLifecycle(
            $appRepository,
            $languageRepository,
            $this->getAppAdministrationSnippetPersisterMock($appEntities[2]$this->getSnippets()),
            $this->getAppLoaderMock($this->getSnippets())
        );

        $appLifecycle->install($manifest, false, Context::createDefaultContext());

        static::assertCount(1, $appRepository->upserts[0]);
        static::assertSame('test', $appRepository->upserts[0][0]['name']);
    }

    public function testInstallSavesNoSnippetsGiven(): void
    {
        $languageRepository = new StaticEntityRepository([$this->getLanguageCollection([
            [
Home | Imprint | This part of the site doesn't use cookies.