static::
assertSame('English description',
$plugin->
getTranslated()['description'
]);
static::
assertSame('https://www.test.com/',
$plugin->
getTranslated()['manufacturerLink'
]);
static::
assertSame('https://www.test.com/support',
$plugin->
getTranslated()['supportLink'
]);
} public function testRefreshPluginsWithDifferentDefaultLanguage(): void
{ $this->
setNewSystemLanguage($this->iso
);
$this->pluginService->
refreshPlugins(Context::
createDefaultContext(),
new NullIO());
$plugin =
$this->
fetchSwagTestNoDefaultLangPluginEntity();
$this->
assertNoDefaultPlugin($plugin);
$this->
assertPluginMetaInformation($plugin);
static::
assertSame('Dutch Beschrijving',
$plugin->
getTranslated()['description'
]);
static::
assertSame('https://www.test.nl/',
$plugin->
getTranslated()['manufacturerLink'
]);
static::
assertSame('https://www.test.nl/support',
$plugin->
getTranslated()['supportLink'
]);
} public function testRefreshPluginsWithGermanContext(): void
{ $context =
new Context(new SystemSource(),
[], Defaults::CURRENCY,
[$this->
getDeDeLanguageId()]);