$filesystem,
$kernel,
new StaticKernelPluginLoader($this->
createMock(ClassLoader::
class)),
$this->
createMock(CacheInvalidator::
class),
$this->
createMock(AbstractAppLoader::
class),
new ParameterBag(['shopware.filesystem.asset.type' => 's3'
]) );
$filesystem->
write('bundles/example/test.txt', 'TEST'
);
$filesystem->
write('bundles/featurea/test.txt', 'TEST'
);
$assetService->
removeAssetsOfBundle('ExampleBundle'
);
static::
assertFalse($filesystem->
has('bundles/example'
));
static::
assertFalse($filesystem->
has('bundles/example/test.txt'
));
static::
assertFalse($filesystem->
has('bundles/featurea'
));
} public function testCopyAssetsClosesStreamItself(): void
{ $kernel =
$this->
createMock(KernelInterface::
class);
$kernel ->
method('getBundle'
)