Commit graph

125 commits

Author SHA1 Message Date
Doug Bell
0d9dcbfb12 merge 8376 2008-11-14 23:08:10 +00:00
Graham Knop
5b1eb1c095 only escape dangerous characters 2008-10-21 18:11:32 +00:00
Colin Kuskie
334ce4791f Update test to work with XSS fix. 2008-10-07 21:30:27 +00:00
Colin Kuskie
3fcdee6094 Update test to track code change for escaping requested URLs. 2008-10-07 19:34:12 +00:00
Colin Kuskie
eca9729d94 update Session/Http to match altered code 2008-09-17 16:18:01 +00:00
Graham Knop
d881a82fc3 fixing tests 2008-08-21 20:44:33 +00:00
Colin Kuskie
19987b53b4 Fix Stow to always return safe copies of stowed data.
And test it.
2008-08-02 22:47:15 +00:00
Colin Kuskie
6561a9d200 Add a lot more tests for forceSecureConnection 2008-07-26 02:08:37 +00:00
Colin Kuskie
70fd60698c convert Session/Url.t to use Test::MockObject::Extends for ENV work 2008-07-25 18:44:24 +00:00
Colin Kuskie
788ec55e8c convert Session/Env.t to use Test::MockObject::Extends 2008-07-25 18:24:08 +00:00
Colin Kuskie
344410b0c9 one test for forceSecureConnections 2008-07-25 18:15:08 +00:00
Graham Knop
87284a08e6 fix test for current debug messages 2008-07-25 06:49:06 +00:00
JT Smith
40e28848d0 fixed 2008-06-12 23:33:27 +00:00
Colin Kuskie
9c9da302f1 remove colons from END blocks, so they actually act like END blocks 2008-05-09 18:14:14 +00:00
Graham Knop
d2116bf797 fixing tests for new output method 2008-04-10 22:15:15 +00:00
Colin Kuskie
06f52bae9a Fix how logging gets intercepted. It used to be on by default, now it must be turned on. 2008-02-29 22:09:32 +00:00
Colin Kuskie
39f1a3da3c forward port slash handling fix from 7.4 branch 2008-02-14 23:51:17 +00:00
Colin Kuskie
04da356822 take more advantage of getTestCollateralPath file concat 2008-02-09 04:44:15 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
Colin Kuskie
b27d14f2e5 forward porting editBranch ownerUserId fixes into HEAD 2008-02-05 16:36:45 +00:00
Colin Kuskie
fca9e9c633 Add a method that returns the regexp used to validate generated GUIDs. This should
prevent the regexp from proliferating all through tests and code.
Also, add a test for the method, which just checks that it returns a regexp.
2008-01-08 20:43:39 +00:00
Colin Kuskie
b309d108dc Clean up all temporary session info in Session/Scratch.t
Add a preliminary run of DeleteExpiredSessions to DeleteExpiredSessions.t
to clean up any old, funky sessions which might just be lying around
and interfering with the test.
2008-01-03 18:37:34 +00:00
Colin Kuskie
1e1e7a2afa Clean up left-over scratch in two tests to try and get
Workflow/Activity/DeleteExpiredSessions to work in the smoke
tests.
Comment out the two failing tests in Asset.t until my bug
gets answered.  Turns out you can't TODO them because
it requires using Test::Builder instead of Test::More.
2007-12-31 02:12:12 +00:00
Colin Kuskie
72906e27fb fixing handling of http:// calls in the Extras URL 2007-12-04 21:25:32 +00:00
Colin Kuskie
256b52a0d7 Final state and status fixes.
In these three files, any check for status=archived was removed, since
in each case it is possible that the Asset may want to be viewable
when it is archived, like Files, Posts, etc.
Updated Session/Url.t to remove tests for status=archived.
2007-11-22 18:46:17 +00:00
Colin Kuskie
484bc40569 leave notes as to future tests that need to be written for getBackToSiteURL 2007-11-12 05:20:52 +00:00
Colin Kuskie
dac78e161c Coverage tests for getBackToSiteURL brings Session/Url coverage
up to 100%.
2007-11-12 05:18:05 +00:00
Colin Kuskie
f3b7b1bf8e Start adding coverage to the getBackToSiteURL method.
Remove the old commented out MockObject request code.  It's PseudoRequest or bust.
WGBP indent some of the Session/Url methods.
2007-11-09 21:23:00 +00:00
Colin Kuskie
14e907d589 begin converting Session/Url.t to PseudoRequest 2007-11-02 23:38:45 +00:00
Graham Knop
db59a2eb7a Some test fixes. 2007-08-15 19:14:08 +00:00
Colin Kuskie
83310ba311 update copyright on tests 2007-07-07 03:56:44 +00:00
Colin Kuskie
6dd91ea8f4 fix a test that leaks a user and casues t/Macro/SQL.t to fail if they are called in the correct order 2007-05-30 21:43:25 +00:00
Colin Kuskie
7f034ba090 basic test for toHex 2007-05-07 04:44:39 +00:00
Colin Kuskie
38060cc0cb add another privilege method for handling locked assets 2007-04-27 22:20:27 +00:00
Colin Kuskie
025a66e30d Coverage is 100/98/63.
Missing coverage is checking for leaving off the epoch argument
and getting the default of time(), and some kind of Devel::Cover
issue where it says that time() could return 0.
2007-04-11 03:05:43 +00:00
Colin Kuskie
b14c3983a9 more coverage tests, branch coverage is at 98% 2007-04-10 22:45:32 +00:00
Colin Kuskie
76bf1b2ad5 testing for DateTime methods for interval translation and date math. Reformatted some of Session/DateTime for WGBP 2007-04-10 04:51:48 +00:00
Colin Kuskie
d051a1960e cover the remaining few subroutines. 100% sub coverage for Session::DateTime 2007-04-09 23:47:47 +00:00
Colin Kuskie
4cc810faf3 Added tests for mailToEpoch.
Removed the default setting for mailToEpoch that would have assigned
the epoch to the mail field and automatically caused the method
to fail, returning undef.
2007-04-09 18:01:26 +00:00
Colin Kuskie
b76351fa83 expanding the DateTime test suite, missing three methods and lots of branch/condition coverage 2007-04-08 05:06:15 +00:00
Colin Kuskie
f113d0a729 increase Privilege coverage to 100% 2007-04-07 19:53:33 +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
Colin Kuskie
97e7621b8a rewrite Http.t tests to return coverage to its original status before the Http.pm rewrite. The only way to increase it from here is to mock the Apache cookie module 2007-04-06 05:00:00 +00:00
Colin Kuskie
17efbe2186 begin fixing the Http tests 2007-04-03 04:21:04 +00:00
Colin Kuskie
c3b3706e19 repair Http test so that it passes. The entire test needs to be reworked as there are now tons of redundant tests 2007-03-10 04:49:48 +00:00
Colin Kuskie
f9aff0cb98 document test that needs to be written for 100% coverage of Style.pm 2007-03-09 22:19:24 +00:00
Colin Kuskie
cee8757c5c adjust style headers for new caching system 2007-03-09 18:30:47 +00:00
Colin Kuskie
91f0b5205c adjust test for new noCache syntax 2007-03-09 17:27:43 +00:00
Colin Kuskie
84716b87ed set explicit check for html,head and body tags to useEmptyStyle to keep an eye on the template 2007-02-28 23:17:20 +00:00
Colin Kuskie
709939f5a1 try to make delta time tests more robust by moving the time variable assignment 2007-01-25 19:06:11 +00:00