Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createArgument example
$this
->
assertSame
(
[
]
,
$resolver
->
resolve
(
$request
,
$argument
)
)
;
}
public
function
testResolveWithoutAttribute
(
)
{
$manager
=
$this
->
getMockBuilder
(
ObjectManager::
class
)
->
getMock
(
)
;
$registry
=
$this
->
createRegistry
(
$manager
)
;
$resolver
=
new
EntityValueResolver
(
$registry
, null,
new
MapEntity
(
disabled: true
)
)
;
$request
=
new
Request
(
)
;
$argument
=
$this
->
createArgument
(
)
;
$this
->
assertSame
(
[
]
,
$resolver
->
resolve
(
$request
,
$argument
)
)
;
}
public
function
testResolveWithoutManager
(
)
{
$registry
=
$this
->
createRegistry
(
null
)
;
$resolver
=
new
EntityValueResolver
(
$registry
)
;
$request
=
new
Request
(
)
;
$argument
=
$this
->
createArgument
(
)
;