Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
omitInclude example
// Not every script or style on a page is aggregated.
if
(
!
str_contains
(
$url
,
$this
->fileAssetsPath
)
)
{
return
;
}
$session
=
$this
->
getSession
(
)
;
$session
->
visit
(
$this
->
replaceGroupDelta
(
$url
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
200
)
;
$session
->
visit
(
$this
->
omitTheme
(
$url
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
400
)
;
$session
->
visit
(
$this
->
omitInclude
(
$url
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
400
)
;
$session
->
visit
(
$this
->
invalidInclude
(
$url
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
400
)
;
$session
->
visit
(
$this
->
invalidExclude
(
$url
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
400
)
;
$session
->
visit
(
$this
->
replaceFileNamePrefix
(
$url
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
400
)
;