/**
* Test the credential form.
*
* @dataProvider providerCredentialForm
*/
public function testCredentialFrom($path_to_database) { $this->
loadFixture($this->
getModulePath('migrate_drupal'
) .
$path_to_database);
$session =
$this->
assertSession();
// Get valid credentials.
$edit =
$this->
getCredentials();
$version =
$edit['version'
];
$edits =
$this->
translatePostValues($edit);
$this->
drupalGet('/upgrade'
);
$session->
responseContains("Upgrade a site by importing its files and the data from its database into a clean and empty new install of Drupal
$this->destinationSiteVersion."
);
$this->
submitForm([], 'Continue'
);
$session->
pageTextContains('Provide credentials for the database of the Drupal site you want to upgrade.'
);
$session->
fieldExists('mysql[host]'
);
// Ensure submitting the form with invalid database credentials gives us a