Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
FirstRunWizardService example
$frwService
->
startFrw
(
$this
->context
)
;
}
public
function
testFrwLoginFailsIfContextSourceIsNotAdminApi
(
)
: void
{
$frwClient
=
$this
->
createMock
(
FirstRunWizardClient::
class
)
;
$frwClient
->
method
(
'frwLogin'
)
->
willThrowException
(
new
InvalidContextSourceException
(
AdminApiSource::
class
, SystemSource::
class
)
)
;
$frwService
=
new
FirstRunWizardService
(
$this
->
createMock
(
StoreService::
class
)
,
$this
->
createMock
(
SystemConfigService::
class
)
,
$this
->
createMock
(
FilesystemOperator::
class
)
,
true,
$this
->
createMock
(
EventDispatcherInterface::
class
)
,
$frwClient
,
$this
->
createMock
(
EntityRepository::
class
)
,
$this
->
createMock
(
TrackingEventClient::
class
)
,
)
;
$this
->
expectException
(
InvalidContextSourceException::
class
)
;