Extracted from #2171683: Remove all Simpletest overrides and rely on native multi-site functionality instead:
Problem
-
The database configuration form in the installer still uses
'db_prefix'
instead of'prefix'
. -
The
'db_prefix'
value is passed forward and converted intoglobal $databases
as-is. -
Only a dirty hack/@todo for PIFR happens to catch the wrong
'db_prefix'
key and move it into the correct'prefix'
key.
Solution
- Fix the form definition to use
'prefix'
. - Remove the obsolete hack/@todo for PIFR.
- Fix
WebTestBase::installParameters()
to actually pass the correct form input values for the database configuration form step.
Comment | File | Size | Author |
---|---|---|---|
#4 | drupal8.db-prefix.4.patch | 2.64 KB | sun |
#3 | drupal8.db-prefix.3.patch | 3.21 KB | sun |
#2 | drupal8.db-prefix.2.patch | 3.79 KB | sun |
drupal8.db-prefix.0.patch | 4.68 KB | sun | |
Comments
Comment #2
sunThose test failures are actually caused by the removed futzing with global $databases in TestBase::changeDatabasePrefix(), which is still required, because the installer does not get a real settings.php.
(Yet - that's one of the major points of #2171683: Remove all Simpletest overrides and rely on native multi-site functionality instead)
Comment #3
sunGreat! Now also removing the @todo that was just commented out previously.
Comment #4
sunRemoved the additional change to the form description from this patch, since that is irrelevant here.
This patch looks ready to me. I need it for #2171683: Remove all Simpletest overrides and rely on native multi-site functionality instead
Comment #5
sunClarified issue summary. Reviews, anyone? :)
Comment #6
sun4: drupal8.db-prefix.4.patch queued for re-testing.
Comment #7
tstoecklerYup, makes sense.
Thanks for the explicit issue summary, things like that help a lot!
Comment #8
tstoecklerWanted to do this, actually :-)
Comment #9
alexpottCommitted c84a43d and pushed to 8.x. Thanks!
We need a change notice since the database configuration form has changed.
Comment #10
sunChange notice: https://drupal.org/node/2181883
Comment #11
jibranThank you for the change notice and the patch @sun.