Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
SitemapRouteCounter example
->
visibility
(
)
->
build
(
)
,
(
new
ProductBuilder
(
$ids
, 'second'
)
)
->
price
(
100
)
->
visibility
(
)
->
build
(
)
,
]
;
$this
->
getContainer
(
)
->
get
(
'product.repository'
)
->
create
(
$products
, Context::
createDefaultContext
(
)
)
;
$counter
=
new
SitemapRouteCounter
(
$this
->
getContainer
(
)
->
get
(
'Shopware\Core\Content\Sitemap\SalesChannel\CachedSitemapRoute.inner'
)
)
;
$config
=
$this
->
createMock
(
SystemConfigService::
class
)
;
$config
->
expects
(
static
::
any
(
)
)
->
method
(
'getInt'
)
->
with
(
'core.sitemap.sitemapRefreshStrategy'
)
->
willReturn
(
$strategy
)
;
$route
=
new
CachedSitemapRoute
(
$counter
,