Scott Walters
851844c917
lots of stuff expects the request object to have a hostname method. give it one.
2012-06-19 16:20:56 -04:00
Scott Walters
225df67d1f
PseudoRequest shouldn't clobber Apache2::Cookies if the package already exists; mock requests are sometimes useful under mod_perl and this is a bit of a gotcha
2012-06-19 16:17:26 -04:00
Colin Kuskie
c17d9aa394
Allow PseudoRequest to handle 0 and '' correctly. Kudos to knowmad for pointing this behavior out.
2011-09-29 14:39:52 -07:00
Graham Knop
328f3dfcec
test cleanups
2009-09-23 16:48:04 -05:00
Graham Knop
86bacc54c6
some small test library cleanups
2009-09-16 18:28:31 -05:00
Martin Kamerbeek
46829ac970
Adding return JSON on specific requeest feature to template.
2009-08-10 12:42:33 +00:00
Colin Kuskie
5e4db3adb4
Provide a framework for CSRF protection, with tests.
...
Add CSRF protection to Asset editSave, AssetManager, VersionTags and Group operations.
2009-07-06 16:58:57 +00:00
Doug Bell
de47c22eff
fixed pseudorequest "Cannot use undefined value as a HASH reference"
2009-05-17 02:55:31 +00:00
Doug Bell
18bb51bc2b
fixed PseudoRequest to do param list correctly
2009-05-15 18:10:18 +00:00
Doug Bell
1f96d708bf
user-services
2009-05-15 18:03:03 +00:00
Doug Bell
00b2709365
fixed PseudoRequest to do param list correctly
2009-05-15 18:02:49 +00:00
Graham Knop
24da723629
updating copyright year
2009-02-20 23:47:30 +00:00
Colin Kuskie
c90fa56507
Make WebGUI::PseudoRequest work with fatals. Cookies are now mocked and
...
tied off inside that package. ErrorHandler uses the session request object,
instead of RequestUtil.
2009-02-18 02:46:59 +00:00
Graham Knop
d6e00cab05
improved performance of file uploads and changed format of created uploads locations, avoiding case sensitivity problems
2008-11-12 01:17:33 +00:00
Graham Knop
f082e2d14e
request->body and request->param should be the same in tests
2008-08-07 22:55:35 +00:00
Colin Kuskie
f555408b95
add POD to PseudoRequest. Also, refactor initializing the cached print values
2008-04-10 23:31:12 +00:00
Graham Knop
d2116bf797
fixing tests for new output method
2008-04-10 22:15:15 +00:00
Colin Kuskie
ebfc711f65
finish rough POD docs for WebGUI::PseudoRequest
2008-02-02 00:16:42 +00:00
Colin Kuskie
23f86d775e
add POD to PseudoRequest. Needs more
2008-02-01 00:21:24 +00:00
Colin Kuskie
1cf78f5321
Finish up the file upload handling by PseudoRequest. If you
...
call $pseudoRequest->uploadFiles with a list of filenames, it will populate
the upload method with upload objects, so that Storage->getFileFromFormPost
will have an object with all the right methods.
t/Storage.t tests this incidently. It occurs to me that we need tests
for our PseudoRequest module, and it needs POD, and it should probably
be rewritten using Class::InsideOut for good form.
2007-11-10 00:47:17 +00:00
Colin Kuskie
4de53b2de9
enable testing of $session->request->uploads through WebGUI::PseudoRequest. Now we need a good utility method for sending a list of files to a sub and having it return a list of filehandles to those files
2007-11-10 00:02:44 +00:00
Doug Bell
991aac998a
fix: t::WebGUI::PseudoRequest now works properly
...
add: Added some additional vars to Calendar Week view
fix: WebGUI::DateTime now handles MySQL strings more robustly
2007-03-20 17:27:30 +00:00
Colin Kuskie
75f159f71b
A whole batch of Http test, and a pseudo Request test module to help.
...
Added accessors to Session/Http.pm, and wrote tests to back them all up.
2006-10-30 18:09:25 +00:00