Closed (fixed)
Project:
Global Redirect
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2013 at 19:34 UTC
Updated:
14 Aug 2013 at 13:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
alberto56 commentedGlobal Redirect's init hook implementation causes simpletests to not run from the command line.
To reproduce:
Enable globalredirect
Go to the command line and type
(I have not tested this on a fresh install, only on my development site)
The test does not run, and no error is given.
Here is a patch which allows the tests to run. It's not really elegant, but it might be useful if you want to run tests in the command line on an environment with globalredirect enabled.
Comment #2
alberto56 commentedA few notes:
- the failure occurs when globalredirect is present on the host site.
- confirming that running tests in the UI work even if globalredirect is present in the host site.
Albert.
Comment #3
markpavlitski commented@alberto56 This is fixed in the 7.x dev release.
_globalredirect_is_active()checks the script name and also checks if php is running via the command line before performing any redirects.I've just run your test case on a fresh install with global redirect enabled and the issue doesn't occur.
I'm marking this as fixed, but please re-open the ticket if you're still experiencing the issue with the latest 7.x dev release.