Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
CustomFieldUpdater example
public
function
testNotProductWritten
(
)
: void
{
$elasticsearchHelper
=
$this
->
createMock
(
ElasticsearchHelper::
class
)
;
$elasticsearchHelper
->
expects
(
static
::
never
(
)
)
->
method
(
'allowIndexing'
)
;
$connection
=
$this
->
createMock
(
Connection::
class
)
;
$customFieldUpdater
=
new
CustomFieldUpdater
(
$this
->
createMock
(
ElasticsearchOutdatedIndexDetector::
class
)
,
$this
->
createMock
(
Client::
class
)
,
$elasticsearchHelper
,
$connection
)
;
$containerEvent
=
new
EntityWrittenContainerEvent
(
Context::
createDefaultContext
(
)
,
new
NestedEventCollection
(
)
,
[
]
)
;