publicfunctiontestThemeSnippetsGetsMergedWithOverride(): void { if(!$this->getContainer()->has(ThemeService::class) || !$this->getContainer()->has('theme.repository')){ static::markTestSkipped('This test needs storefront to be installed.'); }
// the formatter expects 2 char locale or underscore locales, `Locale::getFallback()` transforms the codes
// We use the locale from the catalogue here as that may be the fallback locale,
// create version of order to ensure the document stays the same even if the order changes
$operation->setOrderVersionId($this->orderRepository->createVersion($orderId, $context, 'document'));