shopConfiguration example

'countryIsos' => [
                        ['iso3' => 'DEU', 'default' => true, 'translated' => 'shopware.installer.select_country_deu'],
                        ['iso3' => 'GBR', 'default' => false, 'translated' => 'shopware.installer.select_country_gbr'],
                    ],
                    'currencyIsos' => ['EUR', 'USD'],
                    'languageIsos' => ['de' => 'de-DE', 'en' => 'en-GB'],
                    'parameters' => ['config_shop_language' => 'de-DE'],
                ])
            )
            ->willReturn('config');

        $response = $this->controller->shopConfiguration($request);
        static::assertSame('config', $response->getContent());
    }

    public function testGetConfigurationRouteRedirectsIfSessionIsExpired(): void
    {
        $request = new Request();
        $session = new Session(new MockArraySessionStorage());
        $request->setMethod('GET');
        $request->setSession($session);

        $this->router->expects(static::once())->method('generate')
            
Home | Imprint | This part of the site doesn't use cookies.