@@ -13,7 +13,7 @@ public function testHandleWhenTheAccessDecisionManagerDecidesToRefuseAccess()
13
13
{
14
14
$ request = $ this ->getMock ('Symfony\Component\HttpFoundation\Request ' , array (), array (), '' , false , false );
15
15
16
- $ accessMap = $ this ->getMock ('Symfony\Component\Security\Http\AccessMap ' );
16
+ $ accessMap = $ this ->getMock ('Symfony\Component\Security\Http\AccessMapInterface ' );
17
17
$ accessMap
18
18
->expects ($ this ->any ())
19
19
->method ('getPatterns ' )
@@ -64,7 +64,7 @@ public function testHandleWhenTheTokenIsNotAuthenticated()
64
64
{
65
65
$ request = $ this ->getMock ('Symfony\Component\HttpFoundation\Request ' , array (), array (), '' , false , false );
66
66
67
- $ accessMap = $ this ->getMock ('Symfony\Component\Security\Http\AccessMap ' );
67
+ $ accessMap = $ this ->getMock ('Symfony\Component\Security\Http\AccessMapInterface ' );
68
68
$ accessMap
69
69
->expects ($ this ->any ())
70
70
->method ('getPatterns ' )
@@ -135,7 +135,7 @@ public function testHandleWhenThereIsNoAccessMapEntryMatchingTheRequest()
135
135
{
136
136
$ request = $ this ->getMock ('Symfony\Component\HttpFoundation\Request ' , array (), array (), '' , false , false );
137
137
138
- $ accessMap = $ this ->getMock ('Symfony\Component\Security\Http\AccessMap ' );
138
+ $ accessMap = $ this ->getMock ('Symfony\Component\Security\Http\AccessMapInterface ' );
139
139
$ accessMap
140
140
->expects ($ this ->any ())
141
141
->method ('getPatterns ' )
@@ -188,7 +188,7 @@ public function testHandleWhenTheSecurityContextHasNoToken()
188
188
$ listener = new AccessListener (
189
189
$ context ,
190
190
$ this ->getMock ('Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface ' ),
191
- $ this ->getMock ('Symfony\Component\Security\Http\AccessMap ' ),
191
+ $ this ->getMock ('Symfony\Component\Security\Http\AccessMapInterface ' ),
192
192
$ this ->getMock ('Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface ' )
193
193
);
194
194
0 commit comments