Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
UserConfigEntity example
class
FrwRequestOptionsProviderTest
extends
TestCase
{
public
function
testGetAuthenticationHeaderReturnsFrwToken
(
)
: void
{
$context
= Context::
createDefaultContext
(
new
AdminApiSource
(
'user-id'
)
)
;
$userConfig
=
new
UserConfigEntity
(
)
;
$userConfig
->
setUniqueIdentifier
(
'user-config-id'
)
;
$userConfig
->
setValue
(
[
'frwUserToken' => 'frw-user-token',
]
)
;
$result
=
new
EntitySearchResult
(
UserConfigDefinition::ENTITY_NAME,
1,
new
UserConfigCollection
(
[
$userConfig
]
)
,
null,
new
Criteria
(
)
,