Closed (fixed)
Project:
Drupal core
Version:
8.9.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Aug 2018 at 13:19 UTC
Updated:
11 Dec 2019 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
andrewbelcher commentedHere's a patch.
Comment #3
dawehnerI'm wondering whether we should fix
$GLOBALS['base_url']instead? Am I missing something?Comment #4
andrewbelcher commentedI'd assumed
$GLOBALS['base_url']would be for the base URL that the test makes requests to (or at least would be expected to match that), which is why I made use of something separate.Comment #5
dawehnerI think I'm missing something. Why are these links incorrect?
Comment #6
andrewbelcher commentedIf you're using a remote server (e.g. a development box on digital ocean's cloud infra), to be able to view those files you need to use the servers URL, not localhost.
Comment #7
dawehnerGotcha, that makes sense. Do you mind documenting it in the phpunit.xml maybe?
Comment #8
jhedstromNeeds work to document this in
phpunit.xml.distas noted in #7.Comment #10
andrewbelcher commentedHere's an updated patch with the documentation.
Comment #12
jhedstromThis would also be useful in CI environments where tests might be run against
http://localhost, but the site itself (where the output html would be accessed) would be at an externally accessible URL.I think the patch in #10 looks good and has addressed the above feedback.
Comment #13
alexpottCommitted and pushed a74c8c2b7d to 9.0.x and ba96ab0d0d to 8.9.x and d338a3d4e6 to 8.8.x. Thanks!
Backported to 8.8.x as a test only fix.