Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
addInId example
public
function
testName
(
)
{
$action
=
(
new
InvokeAddInCommandAction
(
)
)
->
name
(
$value
= 'My name'
)
;
$this
->
assertSame
(
$value
,
$action
->
toArray
(
)
[
'name'
]
)
;
}
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'
]
)
;
}