File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ public function testVoteAuthenticatesTokenIfNecessary()
61
61
->will ($ this ->returnValue (true ));
62
62
63
63
// first run the token has not been re-authenticated yet, after isGranted is called, it should be equal
64
- $ this ->assertFalse ($ newToken === $ this ->tokenStorage ->getToken ());
64
+ $ this ->assertNotSame ($ newToken, $ this ->tokenStorage ->getToken ());
65
65
$ this ->assertTrue ($ this ->authorizationChecker ->isGranted ('foo ' ));
66
- $ this ->assertTrue ($ newToken === $ this ->tokenStorage ->getToken ());
66
+ $ this ->assertSame ($ newToken, $ this ->tokenStorage ->getToken ());
67
67
}
68
68
69
69
/**
@@ -90,7 +90,7 @@ public function testIsGranted($decide)
90
90
->method ('decide ' )
91
91
->will ($ this ->returnValue ($ decide ));
92
92
$ this ->tokenStorage ->setToken ($ token );
93
- $ this ->assertTrue ($ decide === $ this ->authorizationChecker ->isGranted ('ROLE_FOO ' ));
93
+ $ this ->assertSame ($ decide, $ this ->authorizationChecker ->isGranted ('ROLE_FOO ' ));
94
94
}
95
95
96
96
public function isGrantedProvider ()
You can’t perform that action at this time.
0 commit comments