Skip to content

Commit

Permalink
Issue #3151360 by quietone, benjifisher, ToneLoc: Improve description…
Browse files Browse the repository at this point in the history
… for file paths on the CredentialFrom

(cherry picked from commit 98057144512a246cabb14b89eb7ecaf8ccd1bc74)
  • Loading branch information
alexpott committed Jul 15, 2020
1 parent c7ab244 commit f7fc507
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions modules/migrate_drupal_ui/src/Form/CredentialForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
];
$form['source']['d6_source_base_path'] = [
'#type' => 'textfield',
'#title' => $this->t('Files directory'),
'#title' => $this->t('Document root for files'),
'#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).'),
'#states' => [
'visible' => [
Expand All @@ -179,7 +179,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {

$form['source']['source_base_path'] = [
'#type' => 'textfield',
'#title' => $this->t('Public files directory'),
'#title' => $this->t('Document root for public files'),
'#description' => $this->t('To import public 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).'),
'#states' => [
'visible' => [
Expand All @@ -191,7 +191,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {

$form['source']['source_private_file_path'] = [
'#type' => 'textfield',
'#title' => $this->t('Private files directory'),
'#title' => $this->t('Document root for private files'),
'#default_value' => '',
'#description' => $this->t('To import private files from your current Drupal site, enter a local file directory containing your site (e.g. /var/www/docroot).'),
'#states' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ public function testMigrateUpgradeExecute() {
}
$this->drupalPostForm(NULL, $paths + $edits, t('Review upgrade'));
if ($version == 6) {
$session->responseContains('Failed to read from Files directory.');
$session->responseContains('Failed to read from Document root for files.');
}
else {
$session->responseContains('Failed to read from Public files directory.');
$session->responseContains('Failed to read from Private files directory.');
$session->responseContains('Failed to read from Document root for public files.');
$session->responseContains('Failed to read from Document root for private files.');
}

// Restart the upgrade process.
Expand Down

0 comments on commit f7fc507

Please sign in to comment.