summaryrefslogtreecommitdiffstats
path: root/Core/Tests/Authentication/Provider
diff options
context:
space:
mode:
authorWouterJ <waldio.webdesign@gmail.com>2015-11-07 18:29:53 +0100
committerWouterJ <waldio.webdesign@gmail.com>2015-11-07 18:34:16 +0100
commitb78eacaa57a9b0171fd4817b99510ab15f60d778 (patch)
treec6d7b18a19d39a5c808827e8a64b2c410523c292 /Core/Tests/Authentication/Provider
parent18ad89207b012a47457f4d0d7c6aaa57cb1f926c (diff)
downloadsymfony-security-b78eacaa57a9b0171fd4817b99510ab15f60d778.zip
symfony-security-b78eacaa57a9b0171fd4817b99510ab15f60d778.tar.gz
symfony-security-b78eacaa57a9b0171fd4817b99510ab15f60d778.tar.bz2
Renamed key to secretv2.8.0-BETA1
Diffstat (limited to 'Core/Tests/Authentication/Provider')
-rw-r--r--Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php b/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php
index 5b71747..8f4b392 100644
--- a/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php
+++ b/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php
@@ -33,7 +33,7 @@ class AnonymousAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
/**
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
*/
- public function testAuthenticateWhenKeyIsNotValid()
+ public function testAuthenticateWhenSecretIsNotValid()
{
$provider = $this->getProvider('foo');
@@ -48,19 +48,19 @@ class AnonymousAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
$this->assertSame($token, $provider->authenticate($token));
}
- protected function getSupportedToken($key)
+ protected function getSupportedToken($secret)
{
$token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\AnonymousToken', array('getSecret'), array(), '', false);
$token->expects($this->any())
->method('getSecret')
- ->will($this->returnValue($key))
+ ->will($this->returnValue($secret))
;
return $token;
}
- protected function getProvider($key)
+ protected function getProvider($secret)
{
- return new AnonymousAuthenticationProvider($key);
+ return new AnonymousAuthenticationProvider($secret);
}
}