$this->
createMock(SymfonyTranslator::
class),
$requestStack,
$this->
createMock(CacheInterface::
class),
$this->
createMock(MessageFormatterInterface::
class),
'prod',
$connection,
$this->
createMock(LanguageLocaleCodeProvider::
class),
$this->
createMock(SnippetService::
class),
false
);
$snippetSetId =
$translator->
getSnippetSetId($locale);
static::
assertEquals($expectedSnippetSetId,
$snippetSetId);
// double call to make sure caching works
$snippetSetId =
$translator->
getSnippetSetId($locale);
static::
assertEquals($expectedSnippetSetId,
$snippetSetId);
} /**
* @return iterable<string, array<int, string|Request|null>>
*/