Permalink
Browse files

Upgrade method name for upstream UserProviderInterface changes

  • Loading branch information...
1 parent 82eae95 commit 380627b6b89b37cf601a98ada934e3dcd73273ec @jmikola jmikola committed Aug 29, 2011
Showing with 5 additions and 5 deletions.
  1. +1 −1 Security/User/LdapUserProvider.php
  2. +4 −4 Tests/Security/User/LdapUserProviderTest.php
@@ -45,7 +45,7 @@ public function loadUserByUsername($username)
}
/**
- * @see Symfony\Component\Security\Core\User\UserProviderInterface::loadUser()
+ * @see Symfony\Component\Security\Core\User\UserProviderInterface::refreshUser()
*/
public function refreshUser(UserInterface $account)
{
@@ -81,7 +81,7 @@ public function testLoadUserByUsernameNotFound()
$this->provider->loadUserByUsername($username);
}
- public function testLoadUser()
+ public function testRefreshUser()
{
$username = 'jmikola';
$existingUser = new LdapUser($username);
@@ -96,7 +96,7 @@ public function testLoadUser()
->with($username)
->will($this->returnValue(array()));
- $user = $this->provider->loadUser($existingUser);
+ $user = $this->provider->refreshUser($existingUser);
$this->assertTrue($user->equals($existingUser));
$this->assertEquals($username, $user->getUsername());
@@ -106,8 +106,8 @@ public function testLoadUser()
/**
* @expectedException Symfony\Component\Security\Core\Exception\UnsupportedUserException
*/
- public function testLoadUserNotSupported()
+ public function testRefreshUserNotSupported()
{
- $this->provider->loadUser($this->getMock('Symfony\Component\Security\Core\User\UserInterface'));
+ $this->provider->refreshUser($this->getMock('Symfony\Component\Security\Core\User\UserInterface'));
}
}

0 comments on commit 380627b

Please sign in to comment.