protected function TfaRecoveryCodeTest::setUp in Two-factor Authentication (TFA) 8
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Plugin/ TfaValidation/ TfaRecoveryCodeTest.php, line 77
Class
- TfaRecoveryCodeTest
- @coversDefaultClass \Drupal\tfa\Plugin\TfaValidation\TfaRecoveryCode
Namespace
Drupal\Tests\tfa\Unit\Plugin\TfaValidationCode
protected function setUp() : void {
parent::setUp();
// Stub out default mocked services. These can be overridden prior to
// calling ::getFixture().
$this->userData = $this
->prophesize(UserDataInterface::class);
$this->encryptionProfileManager = $this
->prophesize(EncryptionProfileManagerInterface::class);
$this->encryptionService = $this
->prophesize(EncryptServiceInterface::class);
$this->tfaSettings = $this
->prophesize(ImmutableConfig::class);
$this->configFactory = $this
->prophesize(ConfigFactoryInterface::class);
$this->encryptionProfile = $this
->prophesize(EncryptionProfileInterface::class);
}