Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createPluginDownloadDataStruct example
$pluginManagementService
=
new
PluginManagementService
(
'',
$this
->
createMock
(
PluginZipDetector::
class
)
,
$extractor
,
$pluginService
,
$this
->
createMock
(
Filesystem::
class
)
,
$this
->
createMock
(
CacheClearer::
class
)
,
$client
)
;
$pluginManagementService
->
downloadStorePlugin
(
$this
->
createPluginDownloadDataStruct
(
'location', 'plugin'
)
,
Context::
createDefaultContext
(
)
)
;
}
public
function
testExtractPluginWithDetectedPlugin
(
)
: void
{
$client
=
$this
->
createClient
(
[
new
Response
(
)
]
)
;
$pluginService
=
$this
->
createMock
(
PluginService::
class
)
;
$pluginZipDetector
=
$this
->
createMock
(
PluginZipDetector::
class
)
;