Scheb\TwoFactorBundle\Tests\DependencyInjection\SchebTwoFactorExtensionTest::load_emailAuthEnabled_loadEmailServices PHP Метод

load_emailAuthEnabled_loadEmailServices() публичный Метод

    public function load_emailAuthEnabled_loadEmailServices()
    {
        $config = $this->getFullConfig();
        $this->extension->load(array($config), $this->container);
        $this->assertHasDefinition('scheb_two_factor.auth_code_mailer');
        $this->assertHasDefinition('scheb_two_factor.security.email.code_generator');
        $this->assertHasDefinition('scheb_two_factor.security.email.provider');
        $this->assertHasDefinition('scheb_two_factor.security.email.email_code_validator');
        $this->assertHasDefinition('scheb_two_factor.security.email.backup_code_validator');
        $this->assertHasAlias('scheb_two_factor.security.email.code_validator', 'scheb_two_factor.security.email.backup_code_validator');
    }