Issue #2702531 by pguillard, ifrik, scuba_fly: Edit UI text for Drupal Upgrade UI module

8.2.x
xjm 2016-06-24 16:55:33 +02:00
parent 604887f326
commit 8db2e4d4a7
3 changed files with 6 additions and 6 deletions

View File

@ -687,7 +687,7 @@ class MigrateUpgradeForm extends ConfirmFormBase {
* The form structure.
*/
public function buildOverviewForm(array $form, FormStateInterface $form_state) {
$form['#title'] = $this->t('Drupal Upgrade');
$form['#title'] = $this->t('Upgrade');
if ($date_performed = $this->state->get('migrate_drupal_ui.performed')) {
// @todo Add back support for rollbacks and incremental migrations.
@ -702,7 +702,7 @@ class MigrateUpgradeForm extends ConfirmFormBase {
}
else {
$form['info_header'] = [
'#markup' => '<p>' . $this->t('Upgrade a Drupal site by importing it into a clean and empty new install of Drupal 8. You will lose any existing configuration once you import your site into it. See the <a href=":url">upgrading handbook</a> for more detailed information.', [
'#markup' => '<p>' . $this->t('Upgrade a site by importing it into a clean and empty new install of Drupal 8. You will lose any existing configuration once you import your site into it. See the <a href=":url">online documentation for Drupal site upgrades</a> for more detailed information.', [
':url' => 'https://www.drupal.org/upgrade/migrate',
]),
];
@ -838,7 +838,7 @@ class MigrateUpgradeForm extends ConfirmFormBase {
$form['source']['source_base_path'] = [
'#type' => 'textfield',
'#title' => $this->t('Files directory'),
'#description' => $this->t('To import files from your current Drupal site, enter a local file directory containing your site (e.g. /var/www/docroot), or your site address (e.g. http://example.com).'),
'#description' => $this->t('To import files from your current Drupal site, enter a local file directory containing your site (e.g. /var/www/docroot), or your site address (for example http://example.com).'),
];
$form['actions'] = ['#type' => 'actions'];

View File

@ -25,13 +25,13 @@ class MigrateAccessTest extends WebTestBase {
$this->drupalLogin($this->rootUser);
$this->drupalGet('upgrade');
$this->assertResponse(200);
$this->assertText(t('Drupal Upgrade'));
$this->assertText(t('Upgrade'));
$user = $this->createUser(['administer software updates']);
$this->drupalLogin($user);
$this->drupalGet('upgrade');
$this->assertResponse(403);
$this->assertNoText(t('Drupal Upgrade'));
$this->assertNoText(t('Upgrade'));
}
}

View File

@ -104,7 +104,7 @@ abstract class MigrateUpgradeTestBase extends WebTestBase {
protected function testMigrateUpgrade() {
$connection_options = $this->sourceDatabase->getConnectionOptions();
$this->drupalGet('/upgrade');
$this->assertText('Upgrade a Drupal site by importing it into a clean and empty new install of Drupal 8. You will lose any existing configuration once you import your site into it. See the upgrading handbook for more detailed information.');
$this->assertText('Upgrade a site by importing it into a clean and empty new install of Drupal 8. You will lose any existing configuration once you import your site into it. See the online documentation for Drupal site upgrades for more detailed information.');
$this->drupalPostForm(NULL, [], t('Continue'));
$this->assertText('Provide credentials for the database of the Drupal site you want to upgrade.');