Commit graph

336 commits

Author SHA1 Message Date
Colin Kuskie
b62247735f tests for Style/setLink and generateAdditionalHeadTags 2006-10-04 22:09:01 +00:00
Roy Johnson
518c76c6f1 A new test. It's currently failing but I'm not really sure why. It could be a bug but I think I'm testing this wrong. 2006-10-04 19:04:28 +00:00
Colin Kuskie
ff2344cdad Added comments to the POD in Var.pm that creating a Var object overwrites
the Session Id.  This is by design.

Added a check to Style.pm so that if no params are passed to setLink that
it won't die by trying to deref undef into a hashref.

First set of tests for Session/Style added.
2006-10-03 23:27:08 +00:00
Colin Kuskie
f5aaa2e996 Additional tests to cover WebGUI::Session::Scratch.
Found and fixed a but in Session/Scratch/deleteNameByValue.  It would
not delete any value that was false (0, '' or undef).  Added a defined-ness
check to make sure it will delete 0 or '', but undef is still not handled.
Added POD to say that this was the case.
2006-10-01 21:49:05 +00:00
Colin Kuskie
fc11dd64b2 add tests that check the return value of several methods. Also added tests to increase test coverage 2006-09-30 23:52:58 +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
JT Smith
f8d22359d5 Images now create revisions as you resize them, so you can roll back to a
previous size.
adjusted roy's test because it's not accurate
2006-09-27 21:19:19 +00:00
Roy Johnson
41bd19736c New test for Article Wobject 2006-09-26 18:38:31 +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
00e37ae971 finalized Var test with 100% coverage 2006-09-23 02:49:37 +00:00
Colin Kuskie
56e78708a4 Add a comment to WebGUI::Session::Var::start that if no userSessionId is passed
that a new userSessionId will be created and that the current sessionId (the actual
session object's id) will be set to this new id.
Add several new tests to Session/Var.t  Tried hard to exploit the change in 
sessionId and haven't found a way, yet.
2006-09-22 03:44:34 +00:00
Colin Kuskie
381ce45c1a Add 7 tests to Session/Var.t. Some of them are redundant. That will
be fixed later.
Added lots of comments to start and new subs.  Changed db methods to
use placeholders.  Changed timely data to call time once so that they
all match.
2006-09-21 03:06:04 +00:00
Colin Kuskie
a74df19091 test getIp with and without forwarding 2006-09-15 21:47:08 +00:00
Colin Kuskie
9fb805525c skeleton tests for macros to get them into the coverage report 2006-09-15 21:22:48 +00:00
Colin Kuskie
2f0d7cab57 skeleton tests for macros to get them into the coverage report 2006-09-15 21:16:15 +00:00
Colin Kuskie
65374109b1 Final test for L_loginBox, and coverage improvements for RootTitle.
Pod and documentation fixes for L_loginBox macro.
2006-09-15 21:08:04 +00:00
JT Smith
90cb569bb5 - fix: deleting workflows did not delete related instances and crons
- Added a "run" link to the scheduler and the running workflows listings to
   aid in debugging workflow errors.
 - fix: profile fields not validated by WebGUI::User
2006-09-15 06:08:30 +00:00
Colin Kuskie
a1bf6a2b21 Coverage fixes for date and last modified macros.
Refactor LastModified macro to use placeholders and remove an unused conditional.
2006-09-14 22:22:35 +00:00
Colin Kuskie
a5049f8149 fix bad test coverage 2006-09-14 20:18:12 +00:00
Colin Kuskie
66d98f371c Update some POD in Stow and PageTitle.
Fix several tests with bad coverage.
2006-09-14 15:54:54 +00:00
Colin Kuskie
d3fbe15ca7 fix test cleanup for AdSpace, add leading 0 test to Form::Text 2006-09-12 04:35:35 +00:00
Colin Kuskie
15345a0232 remove module call since it is not used 2006-09-11 16:11:04 +00:00
Colin Kuskie
adb099dcea Add test to make sure Import Node's parent is Asset Root. 2006-09-07 20:12:05 +00:00
Roy Johnson
6b2eeba271 Added test for import node constructor 2006-09-07 18:39:22 +00:00
Colin Kuskie
d95cd9b68d fix a very bad, simple text parser 2006-08-29 21:13:15 +00:00
Colin Kuskie
70bea40b94 update Form/Email test now that single character usernames work 2006-08-16 23:20:25 +00:00
JT Smith
80ef5e925a - Made some changes to make WebGUI compatible with the WRE for Windows.
- fix: cacheTimeout not respected as Visitor (Eric Kennedy).
 - fix: Email address with just one character in the user part not accepted
 - fix: Image (file) added to page shows before committing changes
 - fix: Typo in fileImport.pl at line 265 (zxp)
2006-08-16 21:25:27 +00:00
Roy Johnson
da1b2d3581 test to check the getMedia asset constructor 2006-08-16 21:23:05 +00:00
Frank Dillon
0703c41165 added tests for newByHashref constructor 2006-08-16 13:52:19 +00:00
Colin Kuskie
091ad048ea add test for single character username at domain 2006-08-15 23:39:58 +00:00
Colin Kuskie
c2a89c49cb remove leftover debugging output 2006-08-13 04:38:14 +00:00
Colin Kuskie
4a88589621 bare beginning of a L_loginBox macro test 2006-08-11 23:44:49 +00:00
Colin Kuskie
b2340842a0 modify test to skip unreadable file test if user is root 2006-08-11 00:34:44 +00:00
Colin Kuskie
5efd737b6d more remote diagnostics 2006-08-09 21:07:04 +00:00
Colin Kuskie
b3678c6795 fix bad minute spec in Session/DateTime/epochToHttp. Add tests to cover 2006-08-09 20:06:19 +00:00
Frank Dillon
b4102862d4 added epochToMail() test 2006-08-09 03:45:40 +00:00
Colin Kuskie
a5d38396a1 more diagnostics for remote debug 2006-08-08 20:17:25 +00:00
Colin Kuskie
000b2fcce3 Reverting previous work. Asset->new must return an Asset, even if
no className is passed and the invocant's class is Asset.  This is
due to the root.  In the db, the root Asset has the className WebGUI::Asset,
and the getRoot method matches this.
Changed the failing test in Asset.t to look for a WebGUI::Asset to be returned.
Added two tests to Asset.t to validate the object returned by Asset->getRoot method.
Reverted previous work and updated the POD for Asset->new.
2006-08-08 17:43:44 +00:00
Colin Kuskie
a7fa4c6a92 Make testing conditional on a successful module load.
Add a test to check the reference of the created object.
Clean up at the end of the test so you can run it more than once at a time.
2006-08-07 05:00:28 +00:00
Colin Kuskie
570668d2bc fix syntax error in test 2006-08-06 23:30:05 +00:00
Colin Kuskie
751adbcf30 more delta time fixes 2006-08-04 17:53:32 +00:00
Colin Kuskie
b02a93b491 change time difference test to handle bridging across 1 second and be more verbose in output 2006-08-04 16:00:12 +00:00
Colin Kuskie
d888c5c134 add explicit test for new users being added to group Everyone on creation 2006-08-04 05:15:38 +00:00
JT Smith
9ddd91570e - Added some more tests to the suite.
- Fixed the test skeleton
2006-08-03 19:38:41 +00:00
Colin Kuskie
8ec18c957f more test debug output 2006-08-03 15:42:23 +00:00