Item2024: Extension unit tests fail because they run with empty CGI query object
Priority: Urgent
Current State: No Action Required
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
When running a unit test, anything that relies on getting info from the query object fails because it looks like this:
query=$VAR1 = bless( {
'param_list' => [],
'headers' => {},
'cookies' => {},
'secure' => 0,
'path_info' => '/TemporaryEditTableFunctionsTestWebEditTableFunctions/TestTopicEditTableFunctions',
'uri' => '',
'uploads' => {},
'remote_user' => undef,
'remote_address' => '',
'action' => '',
'method' => undef,
'server_port' => undef,
'param' => {}
}, 'Unit::Request' );
--
ArthurClemens - 09 Sep 2009
Must be a trunk only problem as the tests run fine on Release01x00 branch
Changing target to minor.
It is important you set the right target.
--
KennethLavrsen - 13 Sep 2009
Since FSA there is no "CGI object" except by accident. Tests should not assume that there is a query object, all they can assume is that there's a
Foswiki::Request
.
I suspect the test.
--
CrawfordCurrie - 15 Nov 2009
No feedback since Arthur reported this, so closing no-action.
--
CrawfordCurrie - 21 Jun 2010