Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
assertHttpKernelIsNotCalled example
$this
->
request
(
'GET', '/'
)
;
$this
->
assertHttpKernelIsCalled
(
)
;
$this
->
assertEquals
(
200,
$this
->response->
getStatusCode
(
)
)
;
$this
->
assertTraceContains
(
'miss'
)
;
$this
->
assertTraceContains
(
'store'
)
;
$this
->cache->
terminate
(
$this
->request,
$this
->response
)
;
sleep
(
2
)
;
$this
->
request
(
'GET', '/'
)
;
$this
->
assertHttpKernelIsNotCalled
(
)
;
$this
->
assertEquals
(
200,
$this
->response->
getStatusCode
(
)
)
;
$this
->
assertTraceContains
(
'fresh'
)
;
$this
->
assertEquals
(
2,
$this
->response->headers->
get
(
'Age'
)
)
;
$this
->cache->
terminate
(
$this
->request,
$this
->response
)
;
$this
->
assertCount
(
1,
$terminateEvents
)
;
}
/** * @group legacy */