Skip to content

Commit

Permalink
Fix TestUserProvider supportsClass call (#4999)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored and danrot committed Jan 22, 2020
1 parent a15f1fd commit 0bd2878
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Sulu/Bundle/TestBundle/Testing/TestUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use Doctrine\ORM\EntityManager;
use Sulu\Bundle\ContactBundle\Entity\ContactRepositoryInterface;
use Sulu\Bundle\SecurityBundle\Entity\User;
use Sulu\Component\Security\Authentication\UserRepositoryInterface;
use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
Expand Down Expand Up @@ -159,7 +160,7 @@ public function refreshUser(UserInterface $user)
*/
public function supportsClass($class)
{
return $class instanceof UserInterface;
return $this->userProvider->supportsClass($class);
}

/**
Expand Down

0 comments on commit 0bd2878

Please sign in to comment.