You are here

protected function TfaContextTest::getFixture in Two-factor Authentication (TFA) 8

Helper method to instantiate the test fixture.

Return value

\Drupal\tfa\TfaContext TFA context.

5 calls to TfaContextTest::getFixture()
TfaContextTest::testGetUser in tests/src/Unit/TfaContextTest.php
@covers ::getUser
TfaContextTest::testIsModuleSetup in tests/src/Unit/TfaContextTest.php
@covers ::isModuleSetup
TfaContextTest::testIsReady in tests/src/Unit/TfaContextTest.php
@covers ::isReady
TfaContextTest::testIsTfaRequired in tests/src/Unit/TfaContextTest.php
@covers ::isTfaRequired
TfaContextTest::testRemainingSkips in tests/src/Unit/TfaContextTest.php
@covers ::remainingSkips

File

tests/src/Unit/TfaContextTest.php, line 99

Class

TfaContextTest
@coversDefaultClass \Drupal\tfa\TfaContext

Namespace

Drupal\Tests\tfa\Unit

Code

protected function getFixture() {
  return new TfaContext($this->tfaValidationManager, $this->tfaLoginManager, $this->configFactory, $this->user, $this->userData, $this->request);
}