Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
DeleteExtensionLocalPublicFilesCommand example
class
DeleteExtensionLocalPublicFilesCommandTest
extends
TestCase
{
public
function
testSymfonyBundle
(
)
: void
{
$kernel
=
$this
->
createMock
(
KernelInterface::
class
)
;
$kernel
->
method
(
'getBundles'
)
->
willReturn
(
[
new
FrameworkBundle
(
)
,
]
)
;
$command
=
new
DeleteExtensionLocalPublicFilesCommand
(
$kernel
)
;
$tester
=
new
CommandTester
(
$command
)
;
$tester
->
execute
(
[
]
)
;
$tester
->
assertCommandIsSuccessful
(
)
;
static
::
assertSame
(
'',
$tester
->
getDisplay
(
)
)
;
}
public
function
testNotPersistentPublicDir
(
)
: void
{
$kernel
=
$this
->
createMock
(
KernelInterface::
class
)
;
$kernel
->
method
(
'getBundles'
)
->
willReturn
(
[