Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setMetadataStore example
$definition
=
$builder
->
build
(
)
;
$this
->
assertCount
(
2,
$definition
->
getPlaces
(
)
)
;
$this
->
assertEquals
(
'a',
$definition
->
getPlaces
(
)
[
'a'
]
)
;
$this
->
assertEquals
(
'b',
$definition
->
getPlaces
(
)
[
'b'
]
)
;
}
public
function
testSetMetadataStore
(
)
{
$builder
=
new
DefinitionBuilder
(
[
'a'
]
)
;
$metadataStore
=
new
InMemoryMetadataStore
(
)
;
$builder
->
setMetadataStore
(
$metadataStore
)
;
$definition
=
$builder
->
build
(
)
;
$this
->
assertSame
(
$metadataStore
,
$definition
->
getMetadataStore
(
)
)
;
}
}