Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setInvalidLibrary example
$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
)
;
$session
->
visit
(
$this
->
setInvalidLibrary
(
$url
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
200
)
;
$session
->
visit
(
$this
->
replaceGroupHash
(
$url
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
200
)
;
$headers
=
$session
->
getResponseHeaders
(
)
;
$this
->
assertEquals
(
[
'no-store, private'
]
,
$headers
[
'Cache-Control'
]
)
;
// And again to confirm it's not cached on disk.
$session
->
visit
(
$this
->
replaceGroupHash
(
$url
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
200
)
;
$headers
=
$session
->
getResponseHeaders
(
)
;