getLanguageCollection example

$appRepository->expects(static::never())->method('upsert');

        $appLifecycle = $this->getAppLifecycle(new StaticEntityRepository([])new StaticEntityRepository([]), null, $this->createMock(AppLoader::class));

        static::expectException(AppException::class);
        static::expectExceptionMessage('App test is not compatible with this Shopware version');
        $appLifecycle->update($manifest['id' => 'test', 'roleId' => 'test'], Context::createDefaultContext());
    }

    public function testInstallSavesSnippetsGiven(): void
    {
        $languageRepository = new StaticEntityRepository([$this->getLanguageCollection([
            [
                'id' => Uuid::randomHex(),
                'locale' => $this->getLocaleEntity(['code' => 'en-GB']),
            ],
        ])]);

        $appEntities = [
            [],
            [
                [
                    'id' => Uuid::randomHex(),
                    
Home | Imprint | This part of the site doesn't use cookies.