protected function InactiveDeleteTest::checkTestResults in Auto Purge Users 8.3
Check the state of each user.
2 calls to InactiveDeleteTest::checkTestResults()
- InactiveDeleteTest::checkConfirmFormResults in tests/
src/ Functional/ InactiveDeleteTest.php - Verifies the expected results of each test.
- InactiveDeleteTest::checkCronResults in tests/
src/ Functional/ InactiveDeleteTest.php - Verifies the expected results of each test.
File
- tests/
src/ Functional/ InactiveDeleteTest.php, line 56
Class
- InactiveDeleteTest
- Purge users whose account has not been activated for a specific period.
Namespace
Drupal\Tests\purge_users\FunctionalCode
protected function checkTestResults() : void {
// Admin account is not deleted.
$account = $this->userStorage
->load($this->admin
->id());
$this
->assertNotNull($account);
// Blocked user.
$account = $this->userStorage
->load($this->blockedUser
->id());
$this
->assertNotNull($account);
// Blocked user to be deleted.
$account = $this->userStorage
->load($this->blockedUserToDelete
->id());
$this
->assertNull($account);
// Active user.
$account = $this->userStorage
->load($this->activeUser
->id());
$this
->assertNotNull($account);
}