Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setExtensionId example
'language' => 'en-GB',
'domain' => 'localhost',
]
,
Query::
parse
(
$lastRequest
->
getUri
(
)
->
getQuery
(
)
)
)
;
}
public
function
testCreateRating
(
)
: void
{
$this
->
getRequestHandler
(
)
->
append
(
new
Response
(
200,
[
]
, null
)
)
;
$review
=
new
ReviewStruct
(
)
;
$review
->
setExtensionId
(
5
)
;
$this
->extensionLicensesService->
rateLicensedExtension
(
$review
,
$this
->
getContextWithStoreToken
(
)
)
;
}
private
function
getContextWithStoreToken
(
)
: Context
{
$userId
= Uuid::
randomHex
(
)
;
$data
=
[
[
'id' =>
$userId
,
'localeId' =>
$this
->
getLocaleIdOfSystemLanguage
(
)
,