Issue #1932596 by ACF: Change site_name() into config in userpasswordreset.test and formtest.
parent
a6143c1811
commit
957b556442
|
@ -65,7 +65,7 @@ class FormTest extends FieldTestBase {
|
|||
$this->drupalGet('test-entity/add/test_bundle');
|
||||
|
||||
// Create token value expected for description.
|
||||
$token_description = check_plain(variable_get('site_name', 'Drupal')) . '_description';
|
||||
$token_description = check_plain(config('system.site')->get('name')) . '_description';
|
||||
$this->assertText($token_description, 'Token replacement for description is displayed');
|
||||
$this->assertFieldByName("{$this->field_name}[$langcode][0][value]", '', 'Widget is displayed');
|
||||
$this->assertNoField("{$this->field_name}[$langcode][1][value]", 'No extraneous widget is displayed');
|
||||
|
|
|
@ -60,7 +60,7 @@ class UserPasswordResetTest extends WebTestBase {
|
|||
|
||||
// Verify that the user was sent an e-mail.
|
||||
$this->assertMail('to', $this->account->mail, t('Password e-mail sent to user.'));
|
||||
$subject = t('Replacement login information for @username at @site', array('@username' => $this->account->name, '@site' => variable_get('site_name', 'Drupal')));
|
||||
$subject = t('Replacement login information for @username at @site', array('@username' => $this->account->name, '@site' => config('system.site')->get('name')));
|
||||
$this->assertMail('subject', $subject, 'Password reset e-mail subject is correct.');
|
||||
|
||||
$resetURL = $this->getResetURL();
|
||||
|
@ -73,7 +73,7 @@ class UserPasswordResetTest extends WebTestBase {
|
|||
// Check successful login.
|
||||
$this->drupalPost(NULL, NULL, t('Log in'));
|
||||
$this->assertLink(t('Log out'));
|
||||
$this->assertTitle(t('@name | @site', array('@name' => $this->account->name, '@site' => variable_get('site_name', 'Drupal'))), 'Logged in using password reset link.');
|
||||
$this->assertTitle(t('@name | @site', array('@name' => $this->account->name, '@site' => config('system.site')->get('name'))), 'Logged in using password reset link.');
|
||||
|
||||
// Log out, and try to log in again using the same one-time link.
|
||||
$this->drupalLogout();
|
||||
|
|
Loading…
Reference in New Issue