diff options
author | Iltar van der Berg <ivanderberg@hostnet.nl> | 2014-09-24 09:31:12 +0200 |
---|---|---|
committer | Iltar van der Berg <ivanderberg@hostnet.nl> | 2014-09-24 09:31:49 +0200 |
commit | d52740c8c0f0a5b98e31b4f759b6681ec364d576 (patch) | |
tree | 9f9c97cb3229b6e5d9ab164c05c21355a7008e9a /Http/Tests/Firewall | |
parent | ddbd3ca7801b2e1c5028ab8d36b315ed4fb896f1 (diff) | |
download | symfony-security-d52740c8c0f0a5b98e31b4f759b6681ec364d576.zip symfony-security-d52740c8c0f0a5b98e31b4f759b6681ec364d576.tar.gz symfony-security-d52740c8c0f0a5b98e31b4f759b6681ec364d576.tar.bz2 |
Split of the SecurityContext to AuthorizationChecker and TokenStorage
Diffstat (limited to 'Http/Tests/Firewall')
-rw-r--r-- | Http/Tests/Firewall/ContextListenerTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Http/Tests/Firewall/ContextListenerTest.php b/Http/Tests/Firewall/ContextListenerTest.php index d6bc5b4..90af07e 100644 --- a/Http/Tests/Firewall/ContextListenerTest.php +++ b/Http/Tests/Firewall/ContextListenerTest.php @@ -18,6 +18,7 @@ use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\KernelEvents; +use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; use Symfony\Component\Security\Core\SecurityContext; use Symfony\Component\Security\Http\Firewall\ContextListener; @@ -27,8 +28,8 @@ class ContextListenerTest extends \PHPUnit_Framework_TestCase protected function setUp() { $this->securityContext = new SecurityContext( - $this->getMock('Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface'), - $this->getMock('Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface') + new TokenStorage(), + $this->getMock('Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface') ); } |