Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createInputDefinition example
$this
->
clearTable
(
'customer'
)
;
}
public
function
testCommandWithoutArguments
(
)
: void
{
$this
->
expectException
(
\InvalidArgumentException::
class
)
;
$this
->
getCommand
(
)
->
run
(
$this
->
getArrayInput
(
)
,
new
BufferedOutput
(
)
)
;
}
public
function
testCommandWithInvalidArguments
(
)
: void
{
$input
=
new
ArrayInput
(
[
'type' => 'foo'
]
,
$this
->
createInputDefinition
(
)
)
;
$this
->
expectException
(
\InvalidArgumentException::
class
)
;
$this
->
getCommand
(
)
->
run
(
$input
,
new
BufferedOutput
(
)
)
;
}
public
function
testCommandRemovesGuest
(
)
: void
{
$this
->
createGuest
(
)
;
static
::
assertCount
(
1,
$this
->
fetchAllCustomers
(
)
)
;