$this->testDriverName = 'Drivertest' .
ucfirst($driver);
// Assert that we are using the database drivers from the driver_test module.
$this->
assertSession()->
elementTextEquals('xpath', '//label[@for="edit-driver-drivertestmysql"]', 'MySQL by the driver_test module'
);
$this->
assertSession()->
elementTextEquals('xpath', '//label[@for="edit-driver-drivertestpgsql"]', 'PostgreSQL by the driver_test module'
);
$settings =
$this->parameters
['forms'
]['install_settings_form'
];
$settings['driver'
] =
$this->testDriverName;
$settings[$this->testDriverName
] =
$settings[$driver];
unset($settings[$driver]);
$edit =
$this->
translatePostValues($settings);
$this->
submitForm($edit,
$this->translations
['Save and continue'
]);
} /**
* Confirms that the installation succeeded.
*/
public function testInstalled() { $this->
assertSession()->
addressEquals('user/1'
);
$this->
assertSession()->
statusCodeEquals(200
);
// Assert that in the settings.php the database connection array has the