Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
FirstRunWizardController example
protected
function
setUp
(
)
: void
{
$this
->firstRunWizardService =
$this
->
createMock
(
FirstRunWizardService::
class
)
;
}
public
function
testStartFrw
(
)
: void
{
$this
->firstRunWizardService->
expects
(
static
::
once
(
)
)
->
method
(
'startFrw'
)
;
$frwController
=
new
FirstRunWizardController
(
$this
->firstRunWizardService,
new
StaticEntityRepository
(
[
]
)
,
new
StaticEntityRepository
(
[
]
)
,
)
;
$response
=
$frwController
->
frwStart
(
$this
->
createContext
(
)
)
;
static
::
assertSame
(
SymfonyResponse::HTTP_OK,
$response
->
getStatusCode
(
)
)
;
}
public
function
testTryingToStartFrwFails
(
)
: void
{