$this->
createMock(ProductDefinition::
class),
$connection,
[],
new EventDispatcher(),
$this->
createMock(AbstractProductSearchQueryBuilder::
class),
[ 'en' => 'english',
'de' => 'german',
] );
$definition =
new ElasticsearchProductDefinition( $this->
createMock(ProductDefinition::
class),
$connection,
[],
new EventDispatcher(),
$this->
createMock(AbstractProductSearchQueryBuilder::
class),
$newImplementation );
$expectedMapping =
[ '_source' =>
[ 'includes' =>
[