Skip to content

Commit b5def10

Browse files
kesslerdevJean85
authored andcommitted
Backport #78 to 0.8.x branch, cherry picked from commit fe3f850
1 parent e874dbd commit b5def10

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/EventListener/ExceptionListenerTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ public function test_that_username_is_set_from_user_interface_if_token_present_a
299299
->willReturn($user)
300300
;
301301

302+
$mockToken
303+
->method('isAuthenticated')
304+
->willReturn(true)
305+
;
306+
302307
$mockEvent = $this
303308
->getMockBuilder('Symfony\Component\HttpKernel\Event\GetResponseEvent')
304309
->disableOriginalConstructor()
@@ -353,6 +358,11 @@ public function test_that_username_is_set_from_user_interface_if_token_present_a
353358
->willReturn('some_user')
354359
;
355360

361+
$mockToken
362+
->method('isAuthenticated')
363+
->willReturn(true)
364+
;
365+
356366
$mockEvent = $this
357367
->getMockBuilder('Symfony\Component\HttpKernel\Event\GetResponseEvent')
358368
->disableOriginalConstructor()
@@ -418,6 +428,11 @@ public function test_that_username_is_set_from_user_interface_if_token_present_a
418428
->willReturn($mockUser)
419429
;
420430

431+
$mockToken
432+
->method('isAuthenticated')
433+
->willReturn(true)
434+
;
435+
421436
$mockEvent = $this
422437
->getMockBuilder('Symfony\Component\HttpKernel\Event\GetResponseEvent')
423438
->disableOriginalConstructor()

0 commit comments

Comments
 (0)