@@ -58,7 +58,7 @@ public function testIsGranted(bool $granted)
58
58
59
59
$ tokenStorageProphecy ->getToken ()->willReturn ($ token );
60
60
61
- $ checker = new ResourceAccessChecker ($ expressionLanguageProphecy ->reveal (), $ authenticationTrustResolverProphecy ->reveal (), null , $ tokenStorageProphecy ->reveal (), null , false );
61
+ $ checker = new ResourceAccessChecker ($ expressionLanguageProphecy ->reveal (), $ authenticationTrustResolverProphecy ->reveal (), null , $ tokenStorageProphecy ->reveal (), null );
62
62
$ this ->assertSame ($ granted , $ checker ->isGranted (Dummy::class, 'is_granted("ROLE_ADMIN") ' ));
63
63
}
64
64
@@ -72,7 +72,7 @@ public function testSecurityComponentNotAvailable()
72
72
$ this ->expectException (\LogicException::class);
73
73
$ this ->expectExceptionMessage ('The "symfony/security" library must be installed to use the "security" attribute. ' );
74
74
75
- $ checker = new ResourceAccessChecker ($ this ->prophesize (ExpressionLanguage::class)->reveal (), null , null , null , null , false );
75
+ $ checker = new ResourceAccessChecker ($ this ->prophesize (ExpressionLanguage::class)->reveal (), null , null , null , null );
76
76
$ checker ->isGranted (Dummy::class, 'is_granted("ROLE_ADMIN") ' );
77
77
}
78
78
@@ -85,7 +85,7 @@ public function testExpressionLanguageNotInstalled()
85
85
$ tokenStorageProphecy = $ this ->prophesize (TokenStorageInterface::class);
86
86
$ tokenStorageProphecy ->getToken ()->willReturn ($ this ->prophesize (TokenInterface::class)->willImplement (Serializable::class)->reveal ());
87
87
88
- $ checker = new ResourceAccessChecker (null , $ authenticationTrustResolverProphecy ->reveal (), null , $ tokenStorageProphecy ->reveal (), null , false );
88
+ $ checker = new ResourceAccessChecker (null , $ authenticationTrustResolverProphecy ->reveal (), null , $ tokenStorageProphecy ->reveal (), null );
89
89
$ checker ->isGranted (Dummy::class, 'is_granted("ROLE_ADMIN") ' );
90
90
}
91
91
@@ -116,7 +116,7 @@ public function testWithoutAuthenticationTokenAndExceptionOnNoTokenIsFalse()
116
116
117
117
$ tokenStorageProphecy ->getToken ()->willReturn (null );
118
118
119
- $ checker = new ResourceAccessChecker ($ expressionLanguageProphecy ->reveal (), $ authenticationTrustResolverProphecy ->reveal (), null , $ tokenStorageProphecy ->reveal (), $ authorizationCheckerProphecy ->reveal (), false );
119
+ $ checker = new ResourceAccessChecker ($ expressionLanguageProphecy ->reveal (), $ authenticationTrustResolverProphecy ->reveal (), null , $ tokenStorageProphecy ->reveal (), $ authorizationCheckerProphecy ->reveal ());
120
120
self ::assertTrue ($ checker ->isGranted (Dummy::class, 'is_granted("ROLE_ADMIN") ' ));
121
121
}
122
122
}
0 commit comments