Problem/Motivation
This is a regression in 8.3.x introduced in #2796105: Move similar methods in BrowserTestBase / WebTestBase to a trait; untangle installDrupal().
settings.testing.php and testing.services.yml are not picked up by test classes extending BrowserTestBase.
The reason is that BrowserTestBase sets $this->originalSiteDirectory while FunctionalSetupTrait expects $this->originalSite to be set.
Proposed resolution
Fix BrowserTestBAse to set $this->originalSite instead.
Note that - because this affects the setup code of tests and in particular the interaction with the host system - this cannot be tested automatically.
Remaining tasks
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2849222-4.patch | 906 bytes | tstoeckler |
Comments
Comment #2
tstoecklerUploading patch from #2796105-63: Move similar methods in BrowserTestBase / WebTestBase to a trait; untangle installDrupal() (#63) and marking RTBC per #2796105-67: Move similar methods in BrowserTestBase / WebTestBase to a trait; untangle installDrupal() (#67).
Comment #4
tstoecklerHmm... not sure what happened there. Here is a fresh one.
Comment #5
tstoecklerComment #6
xjmNo RTBCing your own patch, please. Thanks!
Comment #7
catchI reviewed it and will RTBC - it's just correcting a variable name that wasn't adjusted with the conversion to the trait.
Comment #10
xjmThanks @catch!
At first I didn't see where
$originalSitewas documented, but as @catch pointed out it's inTestSetupTrait(notFunctionalTestSetupTrait). https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Test%21Te...Checking the usages of both properties in HEAD:
With the patch, there are no remaining instances of
originalSiteDirectory.As @catch pointed out this is an 8.3.x regression and not testable. It also actually feels like a major bug to me. So I've committed it to 8.4.x and backported it to 8.3.x as well. Thanks!
Comment #11
tstoecklerRe #6: The patch was already RTBC in the parent issue.