Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
fetchAllCustomers example
$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
(
)
)
;
$input
=
new
ArrayInput
(
[
'type' => 'guests'
]
,
$this
->
createInputDefinition
(
)
)
;
$this
->
getCommand
(
)
->
run
(
$input
,
new
BufferedOutput
(
)
)
;
static
::
assertEmpty
(
$this
->
fetchAllCustomers
(
)
)
;
}
public
function
testCommandIsNoGuest
(
)
: void
{
$this
->
createGuest
(
false
)
;