Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
registerCustomFieldsMapping example
$connection
->
rollBack
(
)
;
}
public
function
testIndexing
(
)
: IdsCollection
{
static
::
expectNotToPerformAssertions
(
)
;
$this
->connection->
executeStatement
(
'DELETE FROM product'
)
;
$this
->
clearElasticsearch
(
)
;
$this
->
registerCustomFieldsMapping
(
)
;
$this
->
indexElasticSearch
(
)
;
$ids
=
new
TestDataCollection
(
)
;
$this
->
createData
(
$ids
)
;
$this
->
refreshIndex
(
)
;
return
$ids
;
}
/** * @depends testIndexing */