You are here

public function ForcePasswordChangeServiceTest::testGetFirstTimeLoginUids in Force Password Change 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Unit/Service/ForcePasswordChangeServiceTest.php \Drupal\Tests\force_password_change\Unit\Service\ForcePasswordChangeServiceTest::testGetFirstTimeLoginUids()

* @covers ::getFirstTimeLoginUids * @dataProvider getFirstTimeLoginUidsDataProvider

File

tests/src/Unit/Service/ForcePasswordChangeServiceTest.php, line 399

Class

ForcePasswordChangeServiceTest
@coversDefaultClass \Drupal\force_password_change\Service\ForcePasswordChangeService @group force_password_change

Namespace

Drupal\Tests\force_password_change\Unit\Service

Code

public function testGetFirstTimeLoginUids($uids) {
  $this->mapper
    ->expects($this
    ->at(0))
    ->method('getFirstTimeLoginUids')
    ->willReturn($uids);
  $first_time_login_uids = $this->forcePasswordChangeService
    ->getFirstTimeLoginUids();
  $this
    ->assertSame($uids, $first_time_login_uids, 'The correct first time login UIDs were returned');
}