Commit graph

47 commits

Author SHA1 Message Date
Colin Kuskie
227be31be5 By default, every Session created by WebGUI::Test will have
a PseudoRequest object, instead of being blank.  Update
Storage.t to test this.
2008-02-09 04:22:39 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
Colin Kuskie
3ff2dca9b5 Fix the POD for the file method. 2008-02-05 23:44:37 +00:00
Doug Bell
53ac4be8d1 Added a simple smtpd for testing
MERGE: Added ability for WebGUI::Test->getPage to work on Operations
MERGE: Fix for AdSpace and tests for Operation::AdSpace
Fixed Poll's use of JSON
Added tests for emailOverride
2008-02-05 19:34:09 +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
ab476b36e5 POD for WebGUI::Test 2008-01-31 21:04:57 +00:00
Doug Bell
a6c9c2d56c fixed Test::Maker::HTML Level. added some comments for future generations 2008-01-05 05:10:57 +00:00
Colin Kuskie
ab3ebbeaab make Maker/Permission.pm handle TODO tests 2008-01-05 05:00:09 +00:00
Colin Kuskie
c8a8af6b4a add prototype Test code to allow Test::Maker modules to handle TODO 2008-01-05 04:19:00 +00:00
Colin Kuskie
fc6fe216b0 Keep the session tracking, but hide it behind an environment
variable to keep the line noise down.  Also, add user and
group tracking.
2008-01-05 02:22:05 +00:00
Colin Kuskie
8b71032a98 add more diagnostics to help find the leaking session. These will be removed or hidden behind conditionals later 2008-01-02 21:08:48 +00:00
Colin Kuskie
ea04c9cd8b Refactor out the duplicated code in ->run into a utility routine. 2007-12-31 03:55:39 +00:00
Colin Kuskie
ed177c614e WebGUI::Test::Maker::Permission will now use usernames instead of userIds in comments
if they are available.
Move the getLanguage test out of the SKIP block dependent on install the PigLatin
language pack.
Update Maker users with usernames in Asset.t
Add tests for assetAddPrivileges.  These tests currently cause the Turn On Admin
checks to fail.  A bug has been filed for this, and the tests may be rewritten
based on the resolution of the bug.
2007-12-27 06:06:32 +00:00
Colin Kuskie
924f09a09f Extend WebGUI::Test::Maker::Permission to handle class methods, like Asset->canAdd and Operations.
Add canEdit and canAdd tests to Asset.t
2007-12-23 23:30:26 +00:00
Doug Bell
4c70aa4c71 re-integrated photogallery branch 2007-12-18 13:05:41 +00:00
Doug Bell
5222ad6be1 merged with SVN HEAD 2007-12-18 12:22:37 +00:00
Doug Bell
82e9bf8448 Finished? Ready for merge at least. 2007-12-17 22:22:06 +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
Colin Kuskie
5263e69c85 var->end already does a scratch->deleteAll 2007-11-02 04:15:57 +00:00
Colin Kuskie
0fa154d84f Add a missing use line in Session/Privilege.pm.
Try to completely clean up all session related stuff from each test.
2007-11-02 03:57:00 +00:00
Doug Bell
32b27d0954 more tests, started Photo development, changed some naming 2007-10-25 06:20:20 +00:00
Doug Bell
2d165c862e Added WebGUI::Test::Maker 2007-10-24 04:12:33 +00:00
Doug Bell
320c2c07b0 more tests plus a framework for making test generators 2007-10-12 20:44:38 +00:00
Doug Bell
5746ded766 Added more tests. Cleaned up the OO of File and Image a bit (removed a healthy bit of unnecessary code from Image). Done with File and Image for the time being... 2007-10-09 07:36:54 +00:00
Colin Kuskie
efea7c9685 fix a typo in the AssetMetaData, and add code to WebGUI::Test to force all output onto STDOUT. Step 1 to smolder 2007-06-06 23:40:14 +00:00
Colin Kuskie
c6bde7eed9 By default, all Log::Log4Perl calls are mocked so that they can
be intercepted and tested.
Reworked Session/ErrorHandler.t to take account of this.
Updated Stow test coverage to 100%.
2007-04-06 22:50:53 +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
9d0894b674 Add a new method to t/lib/WebGUI/Test.pm to return the path to the test
collateral.
Update all tests to use the new method.
Change testCodebase.pl to run long tests by default.  To disable the
long tests, use the --noLongTests switch.
2006-12-15 23:17:22 +00:00
Doug Bell
4ed1f2f30e Added an idea for t/lib/WebGUI/Form_Checking.pm to make testing form values less magic and more flexible. still todo. 2006-11-29 06:36:27 +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
Colin Kuskie
aa15635fde Macro_Config code not needed anymore 2006-07-27 16:00:06 +00:00
Colin Kuskie
f1159269a0 Macro Tests: refactored all macro tests to remove a very evil hack
for inserting macros into the config.  The new method is much cleaner
and uses the Config API.
Updated the docs for the RootTitle macro, both POD and online help.
2006-07-25 20:54:08 +00:00
Colin Kuskie
122b59019c Fixed a problem with the Macro config inserter.
Added a clause to SQL.t to force it to bail if the macro hasn't
been temporarily added to the config.
2006-07-03 21:37:53 +00:00
Colin Kuskie
29635395cf Add Checkbox form test
Completely rework output postprocessing to make it more flexible
and added a test for duplicate test keys.
2006-03-31 23:04:14 +00:00
Colin Kuskie
6a035e44b0 Remove debugging output from Password test
SelectList test is finalized.
Extect auto_check to handle array and scalar accesses to the Form data post processors
2006-03-30 23:34:08 +00:00
Colin Kuskie
16a6c2cc00 Form auto checker 2006-03-27 20:30:55 +00:00
Colin Kuskie
4260ecd7ce fixing tests broken during 6.9 upgrade cycle 2006-02-18 22:08:33 +00:00
kenperl
734ef2fc1e construct WEBGUI_LIB through WEBGUI_CONFIG 2006-01-25 09:03:06 +00:00
JT Smith
b045ac2d61 fixed test script 2006-01-23 04:01:07 +00:00
Christian Hansen
ba2774a146 Silence isnt numeric warning 2006-01-17 23:08:31 +00:00
Christian Hansen
5cd464b76c darwin fis is only for osvers < 8 2006-01-17 22:58:22 +00:00
Christian Hansen
392f79ce8c Fixed dyld issues with libapre2 on darwin 2006-01-17 22:28:32 +00:00
Colin Kuskie
bf960218bf Move Macro utility module into t/lib
Break Macro.t into component tests
resolve conflicts from merge
prove passes on t/Macro
2006-01-17 22:16:12 +00:00
Christian Hansen
83d59837fd Ported all tests 2006-01-17 22:06:21 +00:00
Christian Hansen
3f6176397b Added WebGUI::Test and updated t/Config.t 2006-01-17 19:39:40 +00:00