Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
resetServicesAtStop example
$resetListener
->
resetServices
(
$event
)
;
}
public
function
testResetServicesAtStop
(
)
{
$servicesResetter
=
$this
->
createMock
(
ServicesResetter::
class
)
;
$servicesResetter
->
expects
(
$this
->
once
(
)
)
->
method
(
'reset'
)
;
$event
=
new
WorkerStoppedEvent
(
$this
->
createMock
(
Worker::
class
)
)
;
$resetListener
=
new
ResetServicesListener
(
$servicesResetter
)
;
$resetListener
->
resetServicesAtStop
(
$event
)
;
}
}