Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setReadInfoExtractor example
$cacheItemPool
=
new
ArrayAdapter
(
)
;
$this
->builder->
setCacheItemPool
(
$cacheItemPool
)
;
$this
->
assertEquals
(
$cacheItemPool
,
$this
->builder->
getCacheItemPool
(
)
)
;
$this
->
assertInstanceOf
(
PropertyAccessor::
class
,
$this
->builder->
getPropertyAccessor
(
)
)
;
}
public
function
testUseReadInfoExtractor
(
)
{
$readInfoExtractor
=
$this
->
createMock
(
PropertyReadInfoExtractorInterface::
class
)
;
$this
->builder->
setReadInfoExtractor
(
$readInfoExtractor
)
;
$this
->
assertSame
(
$readInfoExtractor
,
$this
->builder->
getReadInfoExtractor
(
)
)
;
$this
->
assertInstanceOf
(
PropertyAccessor::
class
,
$this
->builder->
getPropertyAccessor
(
)
)
;
}
public
function
testUseWriteInfoExtractor
(
)
{
$writeInfoExtractor
=
$this
->
createMock
(
PropertyWriteInfoExtractorInterface::
class
)
;
$this
->builder->
setWriteInfoExtractor
(
$writeInfoExtractor
)
;