You are here

public function TfaContextTest::testGetUser in Two-factor Authentication (TFA) 8

@covers ::getUser

File

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

Class

TfaContextTest
@coversDefaultClass \Drupal\tfa\TfaContext

Namespace

Drupal\Tests\tfa\Unit

Code

public function testGetUser() {
  $fixture = $this
    ->getFixture();
  $this
    ->assertEquals(3, $fixture
    ->getUser()
    ->id());
}