$connection->
insert('snippet',
[ 'id' => Uuid::
randomBytes(),
'translation_key' => 'foo.123',
'value' => 'foo_123',
'author' => 'test',
'snippet_set_id' =>
$fooId,
'created_at'
=> (new \
DateTimeImmutable())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
]);
$service =
$this->
getSnippetService($snippetFile,
$snippetFile2);
$result =
$service->
getAuthors(Context::
createDefaultContext());
static::
assertCount(4,
$result);
static::
assertContains('shopware',
$result);
static::
assertContains('test',
$result);
static::
assertContains('foo',
$result);
static::
assertContains('Admin',
$result);
} /**
* @dataProvider dataProviderForTestGetStoreFrontSnippets
*
* @param array<int, array<int, MessageCatalogue|array<int|string, string>>> $expectedResult
*/