Skip to content

Commit

Permalink
Also use the two factor factory constants in the unit tests (see #1195)
Browse files Browse the repository at this point in the history
Description
-----------

-

Commits
-------

a5e3920 Also use the two factor factory constants in the unit tests
  • Loading branch information
leofeyer committed Jan 16, 2020
1 parent ba90828 commit f26a9d4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Contao\CoreBundle\DependencyInjection\Security\ContaoLoginFactory;
use Contao\CoreBundle\Security\TwoFactor\BackupCodeManager;
use Contao\CoreBundle\Tests\TestCase;
use Scheb\TwoFactorBundle\DependencyInjection\Factory\Security\TwoFactorFactory;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

Expand All @@ -38,8 +39,8 @@ public function testConfiguresTheContainerServices(): void
null
);

$twoFactorProviderId = 'security.authentication.provider.two_factor.contao_frontend';
$twoFactorListenerId = 'security.authentication.provider_preparation_listener.two_factor.contao_frontend';
$twoFactorProviderId = TwoFactorFactory::PROVIDER_ID_PREFIX.'contao_frontend';
$twoFactorListenerId = TwoFactorFactory::PROVIDER_PREPARATION_LISTENER_ID_PREFIX.'contao_frontend';

$this->assertSame('contao.security.authentication_provider.contao_frontend', $authProviderId);
$this->assertSame('contao.security.authentication_listener.contao_frontend', $listenerId);
Expand Down

0 comments on commit f26a9d4

Please sign in to comment.