diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 2f0a298995d..9b32818c0f2 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -10,7 +10,7 @@ - + diff --git a/phpunit_mongodb.xml b/phpunit_mongodb.xml index 0afdb28354b..08db004899f 100644 --- a/phpunit_mongodb.xml +++ b/phpunit_mongodb.xml @@ -10,7 +10,7 @@ - + diff --git a/tests/Fixtures/app/AppKernel.php b/tests/Fixtures/app/AppKernel.php index feb981f694c..b5804fc5c1d 100644 --- a/tests/Fixtures/app/AppKernel.php +++ b/tests/Fixtures/app/AppKernel.php @@ -29,7 +29,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Routing\RouteCollectionBuilder; -use Symfony\Component\Security\Core\Encoder\SodiumPasswordEncoder; use Symfony\Component\Security\Core\User\UserInterface; /** @@ -97,11 +96,10 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load $loader->load(__DIR__."/config/config_{$this->getEnvironment()}.yml"); - $alg = class_exists(SodiumPasswordEncoder::class) && SodiumPasswordEncoder::isSupported() ? 'auto' : 'bcrypt'; $securityConfig = [ 'encoders' => [ - User::class => $alg, - UserDocument::class => $alg, + User::class => 'auto', + UserDocument::class => 'auto', // Don't use plaintext in production! UserInterface::class => 'plaintext', ],