Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Backup\BackupCodeValidatorTest::checkBackupCode_codeInvalid_returnFalse PHP Метод

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

    public function checkBackupCode_codeInvalid_returnFalse()
    {
        //Stub the user
        $user = $this->createUser();
        $user->expects($this->any())->method('isBackupCode')->willReturn(false);
        $returnValue = $this->validator->checkCode($user, 'c0de');
        $this->assertFalse($returnValue);
    }