Colin Kuskie
e0177dc666
Remove Session::Env, migrate code to Plack::Request object in Session, and WebGUI::Session::Request
2010-07-01 17:40:12 -07:00
Colin Kuskie
e5b82bc861
Merge commit ' 4969f31e1f' into WebGUI8
2010-06-26 14:37:31 -07:00
Graham Knop
89d4f46a18
Merge branch 'psgi' into WebGUI8
2010-06-11 23:05:06 -05:00
Graham Knop
e063818e2d
some URL fixes and removing some uses of PseudoRequest
2010-06-11 23:01:57 -05:00
Graham Knop
6f102973dd
use temp config file for testing
2010-06-10 18:58:25 -05:00
Graham Knop
f852bd8866
better cleanup code
2010-05-17 05:26:26 -05:00
Graham Knop
3ee212142c
test more url forms including international characters
2010-05-17 05:26:00 -05:00
Colin Kuskie
b7b91a3143
Update test for property manipulation.
2010-05-06 12:24:38 -07:00
Graham Knop
e0f55e7e5e
change encode check for newer URI::Escape versions
2010-03-19 18:22:08 -05:00
Colin Kuskie
1441fe2e88
Forward port urlize changes, and tests.
2009-06-10 03:34:09 +00:00
Randall Schwartz
2fc4f3b54d
CDN: perltidy on new/changed code
2009-05-14 00:35:41 +00:00
Randall Schwartz
acd3fded45
Content Delivery Network (CDN) - optional, for either uploads only or both uploads & extras (rfe 9134)
2009-05-13 21:12:05 +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
Graham Knop
24da723629
updating copyright year
2009-02-20 23:47:30 +00:00
Graham Knop
5b1eb1c095
only escape dangerous characters
2008-10-21 18:11:32 +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
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
344410b0c9
one test for forceSecureConnections
2008-07-25 18:15:08 +00:00
Colin Kuskie
39f1a3da3c
forward port slash handling fix from 7.4 branch
2008-02-14 23:51:17 +00:00
JT Smith
93b5ca16e4
updating copyright year
2008-02-07 23:28:18 +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
91f0b5205c
adjust test for new noCache syntax
2007-03-09 17:27:43 +00:00
Colin Kuskie
d995ff09fe
Fixed a bug with WebGUI::Session::Url::page where, if preventProxyCache
...
was enabled a noCache param was always added to the URL. In some
cases it would add 2 noCache params.
To fix this, I added a skipPreventProxyCache param to the gateway method,
and page just passes $pairs and $skipPreventProxyCache to gateway.
Added tests to Url.t to test gateway, page, makeAbsolute and urlize
to bring its coverage up to 100%.
Added tests to Stow.t to bring it's coverage up to 100% as well.
2006-09-30 17:23:44 +00:00
Colin Kuskie
b1a5c46fcb
add 6 more tests for page and clean up the POD
2006-09-29 22:51:18 +00:00
Colin Kuskie
2d2b780ed6
More comments and POD for Session/Url.pm.
...
Tests for escape, unescape, extras methods. Test code is big enough
that I've added section delimiting comments. This has helped make
the code a lot more readable.
2006-09-29 03:32:24 +00:00
Colin Kuskie
8174f9d2b4
More tests for WebGUI::Session::Url::getSiteUrl, which now has 100% test coverage.
...
Refactored getSiteUrl so it is very obvious as to how it works, replacing
code that was hard to cover.
2006-09-29 02:30:54 +00:00
Colin Kuskie
71b7032545
more Session::Url tests
2006-09-28 23:41:26 +00:00
Colin Kuskie
86a5cb9128
Fix the same problem with form params in getRequestedUrl as in
...
getRefererUrl and add tests to detect it.
2006-09-25 04:47:05 +00:00
Colin Kuskie
eea7b941c9
A few more tests to kick coverage up to 100 on WebGUI::Session::Setting
...
Convert it to use placeholders as well.
More WebGUI::Session::Url tests, and some bug fixes:
getRefererUrl returned parameters and accepted weird methods that
looked like http but weren't.
2006-09-25 03:49:25 +00:00
Colin Kuskie
499981d092
removing diag to clean up smoke test output
2006-04-20 18:43:20 +00:00
Colin Kuskie
d0e7c5bb06
fix failing noCache test because separator changed
2006-04-17 03:06:20 +00:00
Colin Kuskie
4260ecd7ce
fixing tests broken during 6.9 upgrade cycle
2006-02-18 22:08:33 +00:00
Colin Kuskie
f68c1ace5d
Some content for Paginator stub. Not very much at all.
...
Session/Url.t fixed up.
2006-01-20 23:12:54 +00:00
Colin Kuskie
e1b42d2970
Added Test::MockObject tests to Session/Url to bypass request requirements.
...
Added stub for Paginator.t
2006-01-20 18:53:47 +00:00
Colin Kuskie
77df67e7c2
additional tests for Session::Url
2006-01-20 00:11:53 +00:00
Colin Kuskie
1ab3df1f30
beginnings of Session::Url testing
2006-01-19 00:19:49 +00:00