Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setTaxStateFluent example
$generator
=
new
EntityCacheKeyGenerator
(
)
;
static
::
assertNotEquals
(
$generator
->
getSalesChannelContextHash
(
new
DummyContext
(
)
,
[
'test'
]
)
,
$generator
->
getSalesChannelContextHash
(
$compared
,
[
'test'
]
)
)
;
}
public
static
function
contextHashProvider
(
)
: \Generator
{
yield
'tax state considered for hash' =>
[
(
new
DummyContext
(
)
)
->
setTaxStateFluent
(
CartPrice::TAX_STATE_NET
)
,
]
;
yield
'currency id considered for hash' =>
[
(
new
DummyContext
(
)
)
->
setCurrencyId
(
'foo'
)
,
]
;
yield
'sales channel id considered for hash' =>
[
(
new
DummyContext
(
)
)
->
setSalesChannelId
(
'foo'
)
,
]
;
yield
'language id chain considered for hash' =>
[
(