Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getSeoUrlFromDatabase example
$seoUrls
=
$this
->
generateSeoUrls
(
$category
->
getId
(
)
)
;
$this
->seoUrlPersister->
updateSeoUrls
(
Context::
createDefaultContext
(
)
,
TestNavigationSeoUrlRoute::ROUTE_NAME,
[
$category
->
getId
(
)
]
,
$seoUrls
,
$this
->salesChannel
)
;
$seoUrl
=
$this
->
getSeoUrlFromDatabase
(
$category
->
getId
(
)
)
;
static
::
assertTrue
(
$seoUrl
->
getIsDeleted
(
)
)
;
}
/** * @group slow */
public
function
testUpdateSeoUrlsShouldMarkSeoUrlAsNotDeleted
(
)
: void
{
$isActive
= true;
$category
=
$this
->
createCategory
(
$isActive
)
;