summaryrefslogtreecommitdiffstats
path: root/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php
diff options
context:
space:
mode:
authorNicolas Grekas <nicolas.grekas@gmail.com>2015-07-02 08:18:34 +0200
committerNicolas Grekas <nicolas.grekas@gmail.com>2015-07-02 08:18:34 +0200
commitbda622ef2c5226c3123df629167b0eeccb7127e7 (patch)
tree1a1c7a4ed5f9c4acc1bd02382daf308157f94db0 /Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php
parent3b3cfe0bb49fc0e330dd731705bff6cd8d6f93f6 (diff)
parent2a1a7a58fbecdb00d8a2546252e5e276f2a1d53c (diff)
downloadsymfony-security-bda622ef2c5226c3123df629167b0eeccb7127e7.zip
symfony-security-bda622ef2c5226c3123df629167b0eeccb7127e7.tar.gz
symfony-security-bda622ef2c5226c3123df629167b0eeccb7127e7.tar.bz2
Merge branch '2.8'
* 2.8: [travis] start hhvm first [DX] [Security] Renamed Token#getKey() to getSecret() [Validator] always evaluate binary format when changed Conflicts: .travis.yml src/Symfony/Component/Security/Http/composer.json
Diffstat (limited to 'Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php')
-rw-r--r--Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php b/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php
index 5a189b0..5b71747 100644
--- a/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php
+++ b/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php
@@ -37,7 +37,7 @@ class AnonymousAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
{
$provider = $this->getProvider('foo');
- $this->assertNull($provider->authenticate($this->getSupportedToken('bar')));
+ $provider->authenticate($this->getSupportedToken('bar'));
}
public function testAuthenticate()
@@ -50,9 +50,9 @@ class AnonymousAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
protected function getSupportedToken($key)
{
- $token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\AnonymousToken', array('getKey'), array(), '', false);
+ $token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\AnonymousToken', array('getSecret'), array(), '', false);
$token->expects($this->any())
- ->method('getKey')
+ ->method('getSecret')
->will($this->returnValue($key))
;