Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
desktopCommandId example
public
function
testAddInId
(
)
{
$action
=
(
new
InvokeAddInCommandAction
(
)
)
->
addInId
(
$value
= '1234'
)
;
$this
->
assertSame
(
$value
,
$action
->
toArray
(
)
[
'addInId'
]
)
;
}
public
function
testDesktopCommandId
(
)
{
$action
=
(
new
InvokeAddInCommandAction
(
)
)
->
desktopCommandId
(
$value
= '324'
)
;
$this
->
assertSame
(
$value
,
$action
->
toArray
(
)
[
'desktopCommandId'
]
)
;
}
public
function
testInitializationContext
(
)
{
$value
=
[
'foo' => 'bar',
]
;
$action
=
(
new
InvokeAddInCommandAction
(
)
)