Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
assertRemoveToken example
$storage
->
expects
(
$this
->
once
(
)
)
->
method
(
'getToken'
)
->
with
(
'https-token_id'
)
->
willReturn
(
'def'
)
;
$this
->
assertFalse
(
$manager
->
isTokenValid
(
new
CsrfToken
(
'token_id', 'abc..ghi'
)
)
)
;
}
public
function
testRemoveTokenEmptyNamespace
(
)
{
$this
->
assertRemoveToken
(
...
$this
->
getEmptyNamespaceMocks
(
)
)
;
}
public
function
testRemoveTokenHttpsNamespace
(
)
{
$this
->
assertRemoveToken
(
...
$this
->
getHttpsNamespaceMocks
(
)
)
;
}
public
function
testRemoveTokenCustomNamespace
(
)
{
$this
->
assertRemoveToken
(
...
$this
->
getCustomNamespaceMocks
(
)
)
;
}