$this->assertRaw('type="radio" id="edit-status-1" name="status" value="1" checked="checked" class="form-radio"',$this->t('User account is currently enabled.'));
$this->assertSession()->responseContains('type="radio" id="edit-status-1" name="status" value="1" checked="checked" class="form-radio"',$this->t('User account is currently enabled.'));
// And the expiration was really really saved.
$this->assertRaw('expiration date is set to Sun, 08/18/2002 - 00:00.');
$this->assertSession()->responseContains('expiration date is set to Sun, 08/18/2002 - 00:00.');
$this->drupalGet('admin/reports/expiring-users');
$this->assertRaw('0 sec from now','Expiration shows in Expiring users report');
$this->assertSession()->responseContains('0 sec from now','Expiration shows in Expiring users report');
$this->drupalLogout($admin_user);
// User edits account, expiry is still set.
@@ -78,28 +78,28 @@ class UserExpireTest extends BrowserTestBase {
$this->assertRaw('type="radio" id="edit-status-0" name="status" value="0" checked="checked" class="form-radio"',$this->t('User account is currently disabled.'));
$this->assertSession()->responseContains('type="radio" id="edit-status-0" name="status" value="0" checked="checked" class="form-radio"',$this->t('User account is currently disabled.'));
$this->assertRaw('type="radio" id="edit-status-1" name="status" value="1" checked="checked" class="form-radio"',$this->t('User account is currently enabled.'));
$this->assertSession()->responseContains('type="radio" id="edit-status-1" name="status" value="1" checked="checked" class="form-radio"',$this->t('User account is currently enabled.'));
// Confirm there are no per-user expiration records.
$this->drupalGet('admin/reports/expiring-users');
$this->assertNoText('0 sec from now',$this->t('Processed expiration does not show in Expiring users report'));
$this->assertSession()->responseNotContains('0 sec from now',$this->t('Processed expiration does not show in Expiring users report'));
// Fake that their access time is 90 days and 2 seconds.
// Be sure to use REQUEST_TIME because the query to identify uses
@@ -126,28 +126,28 @@ class UserExpireTest extends BrowserTestBase {
$this->assertRaw('type="radio" id="edit-status-0" name="status" value="0" checked="checked" class="form-radio"',$this->t('User account is currently disabled.'));
$this->assertSession()->responseContains('type="radio" id="edit-status-0" name="status" value="0" checked="checked" class="form-radio"',$this->t('User account is currently disabled.'));
// Ensure a brand new user is not blocked (i.e. access = 0).
$new_basic_account=$this->drupalCreateUser();
// Set auth users to expire after 90 days of inactivity.
$this->assertRaw('type="radio" id="edit-status-0" name="status" value="0" checked="checked" class="form-radio"',$this->t('User account is currently disabled.'));
$this->assertSession()->responseContains('type="radio" id="edit-status-0" name="status" value="0" checked="checked" class="form-radio"',$this->t('User account is currently disabled.'));