Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createJsonRequest example
$this
->
createHttpRequest
(
)
;
$passport
=
$this
->
createPassport
(
[
]
)
;
$this
->listener->
onSuccessfulLogin
(
$this
->
createLoginSuccessfulEvent
(
$passport
)
)
;
$this
->
assertFalse
(
$passport
->
hasBadge
(
RememberMeBadge::
class
)
)
;
}
public
function
testSuccessfulJsonLoginWithoutSupportingAuthenticator
(
)
{
$this
->
createJsonRequest
(
)
;
$passport
=
$this
->
createPassport
(
[
]
)
;
$this
->listener->
onSuccessfulLogin
(
$this
->
createLoginSuccessfulEvent
(
$passport
)
)
;
$this
->
assertFalse
(
$passport
->
hasBadge
(
RememberMeBadge::
class
)
)
;
}
public
function
testSuccessfulLoginWithoutRequestParameter
(
)
{
$this
->request = Request::
create
(
'/login'
)
;
$this
->response =
new
Response
(
)
;