public function ForcePasswordChangeServiceTest::testGetFirstTimeLoginUids in Force Password Change 2.0.x
Same name and namespace in other branches
- 8 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 411
Class
- ForcePasswordChangeServiceTest
- @coversDefaultClass \Drupal\force_password_change\Service\ForcePasswordChangeService @group force_password_change
Namespace
Drupal\Tests\force_password_change\Unit\ServiceCode
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');
}