Colin Kuskie
004b8095a1
Add method to clean up test sessions. This has to be done
...
after ALL other types of objects have been cleaned up.
More test clean-up for users, groups and sessions.
2009-05-01 02:02:12 +00:00
Graham Knop
17cd847378
adjusting tests for new behavior
2009-04-10 00:51:49 +00:00
Colin Kuskie
4e78593395
Change tests to use the automatic backup of Settings in END blocks.
2009-03-30 20:41:02 +00:00
Colin Kuskie
05d62c92b7
Have Setting's get work like other gets by returning a hashref when
...
no param is requested.
2009-03-30 19:46:16 +00:00
Graham Knop
db226238ce
silence warning in errorhandler test
2009-03-12 23:27:50 +00:00
David Delikat
8adae35947
fixed postfix object notation
2009-02-23 04:51:45 +00:00
David Delikat
af5ad84fc8
added code and test suite for a series of functions that
...
identify non-human web clients so that advertising can
eliminate ghost impressions and ghost clicks
2009-02-23 00:20:46 +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
Colin Kuskie
96c15c56b2
Optimize canShowDebug for speed by caching the calculated check.
2009-02-16 21:03:31 +00:00
Colin Kuskie
312d1f2f8b
Update test to match fixed code.
2009-01-04 03:49:42 +00:00
JT Smith
c76d533c31
got it before perlDreamer did!
2008-12-20 16:12:09 +00:00
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