-
Notifications
You must be signed in to change notification settings - Fork 11
Serve Drupal from a /subdir to mimic drupal.org testing. #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 3.x
Are you sure you want to change the base?
Conversation
|
Currently the tests do not work within the web container. I am wondering if there's a difference in how the phpunit tests run with respect to the /subdir @ekes @stephen-cox @tonypaulbarker any ideas? |
|
Steps to test this: Result Clicking on the HTML output, we can see that the /subdir is being used, but 'Home' link does not link to /subdir
So is there some other configuration that phpunit needs, to know it is running in a sub-directory? |
|
|
@danchamp any ideas with this? |
@finnlewis I'm a Lando user so will take a look at what changes are needed to test this locally. |
|
@millnut is this something you might have any bright ideas about? |
|
Yep I'll take a look @finnlewis just finishing an alpha version of a LocalGov Drupal recipe installer. |
|
Hi @finnlewis so that error is actually misleading as you're not actually logged in as a cookie isn't set in the header, see https://www.drupal.org/project/drupal/issues/3556139 for an update to core to make the message more clear. So it looks like a cookie issue or nginx rewrite issue. |
|
@finnlewis to move this to Drupal.org |

Work in progress...
The motivation here is to be able to run tests against the site installed under a dub-directory.
drupal.org does this, which is exposing issues in our tests and bugs in some places (eg. localgovdrupal/localgov_services#335)
It would be great to be able to run the tests locally to replicate this.
The setup on this merge request serves the site at /subdir