'en' => 'english',
'de' => 'german',
] );
$uuid =
$this->ids->
get('product-1'
);
$documents =
$definition->
fetch([$uuid], Context::
createDefaultContext());
static::
assertArrayHasKey($uuid,
$documents);
static::
assertArrayHasKey('customFields',
$documents[$uuid]);
static::
assertArrayHasKey(Defaults::LANGUAGE_SYSTEM,
$documents[$uuid]['customFields'
]);
static::
assertArrayHasKey('bool',
$documents[$uuid]['customFields'
][Defaults::LANGUAGE_SYSTEM
]);
static::
assertIsBool($documents[$uuid]['customFields'
][Defaults::LANGUAGE_SYSTEM
]['bool'
]);
static::
assertArrayHasKey('int',
$documents[$uuid]['customFields'
][Defaults::LANGUAGE_SYSTEM
]);
static::
assertIsFloat($documents[$uuid]['customFields'
][Defaults::LANGUAGE_SYSTEM
]['int'
]);
static::
assertArrayNotHasKey('unknown',
$documents[$uuid]['customFields'
][Defaults::LANGUAGE_SYSTEM
]);
} public function getConnection(): Connection
{ $connection =
$this->
createMock(Connection::
class);
$connection ->
method('fetchAllAssociativeIndexed'
)