Commit graph

588 commits

Author SHA1 Message Date
Chris Nehren
9db0430032 Fix the groupToEditPost field defaulting to the groupIdEdit field. Make sure
that the added collab system in the test has a parent asset as well, to ensure
that the inheritance works properly.
2007-11-07 22:29:21 +00:00
Chris Nehren
e20e6061f2 Don't delete the groups used in the Post test, they're needed. May want to make
mock groups in the future. Also clean up some commented out things from
Collaboration.t.
2007-11-06 23:06:09 +00:00
Chris Nehren
0d689afa4c Add the groupToEditPost field to the Collaboration system. This allows users
to specify a group of users that will always be able to do edits on posts,
regardless of whether they own those posts and independent of the editTimeout
field.
2007-11-06 22:58:22 +00:00
Chris Nehren
a7c0ff0dec Fix backwards compatability with existing code. Update the tests accordingly. 2007-11-05 20:10:42 +00:00
Chris Nehren
8688604ea4 Lots of fixes.
1. Restore original getJsonStatus functionality of returning data for just one
site, if sitename is passed.
2. Add a few comments to Spectre::Workflow::getJsonStatus to help explain what's
going on, and also add some whitespace to separate the code into logical pieces.
3. Add tests for this functionality, doubling the number of tests for
getJsonStauts to 20.
4. Per Colin's suggestion, use isa_ok rather than cmp_ok(ref ... , eq 'TYPE',
'...').
5. Fix broken indentation in a for loop.
6. Change for loops to foreach to be consistent with the rest of WebGUI.
2007-11-05 16:56:09 +00:00
Colin Kuskie
14e907d589 begin converting Session/Url.t to PseudoRequest 2007-11-02 23:38:45 +00:00
Chris Nehren
dd53243b08 Fixups for the tests. I moved the nested key checking into a TODO block. I'm
not sure how to handle them, as they may / may not exist in the %output hash.
Sometimes they'll pass, sometimes they won't, depending upon the time you run
it and the status of Spectre overall.
2007-11-02 19:12:16 +00:00
Chris Nehren
3e2bad5cb4 Work towards having Spectre::Workflow::getJsonStatus return information about
all sites, needed for munging workflow monitoring into wremonitor.pl.
2007-11-02 18:08:20 +00:00
Colin Kuskie
45eb45fa3e fix a session bug where, when using noFuss, user session scratch was not cleaned up 2007-11-02 17:50:19 +00:00
Colin Kuskie
980ff3e972 add plan for testing. Fill in with code later 2007-11-02 04:45:10 +00:00
Colin Kuskie
2c232773e4 add a test stub for DeleteExpiredSessions. To be filled in soon :) 2007-11-02 04:31:47 +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
Colin Kuskie
397783f15d final coverage tests to bring User.pm up to 100% 2007-10-31 21:15:49 +00:00
Colin Kuskie
17441c13c2 Fixed broken friends method caching. The cache was never populated, so it
would fail every time.
Added a missing DESTROY method to Group.pm.  That way it won't puke when trying
to call an undefined method when the User object is cleaned up.
Added coverage tests for friends method in User.pm
2007-10-31 21:00:54 +00:00
Colin Kuskie
2165538936 coverage tests for identifier method 2007-10-29 23:21:43 +00:00
Colin Kuskie
4519ecb261 coverage test for the case of an un-cached profile field fetch in User.t 2007-10-29 22:38:36 +00:00
Colin Kuskie
17be7789cc fix a stupid typo that I put into i18n/help.t 2007-10-26 03:02:08 +00:00
Colin Kuskie
b8a4033036 Add more coverage tests for methods added to User.pm
for Friends.
Fix a bug in the isOnline method, which was looking sessions
exactly 600 seconds old.
2007-10-26 02:54:47 +00:00
Colin Kuskie
3955b11149 make sure that no files are accidently skipped, and emit comments via diag, not warn 2007-10-24 22:34:49 +00:00
Colin Kuskie
9ac39f6f9d setHelp.t is not needed since all help icons point to the wiki 2007-10-24 04:24:35 +00:00
Doug Bell
2d165c862e Added WebGUI::Test::Maker 2007-10-24 04:12:33 +00:00
Colin Kuskie
696e2378d7 don't need no stinking File::Find 2007-10-24 04:05:59 +00:00
Colin Kuskie
3fc39faa3d don't need no stinking lib 2007-10-24 03:59:22 +00:00
Colin Kuskie
ba5df0075f help.t does not need extract_block from Text::Balanced 2007-10-24 03:45:02 +00:00
Colin Kuskie
d66f8fa337 Add a new test for coverage of isInGroup with a non-existant group 2007-10-19 01:36:09 +00:00
Colin Kuskie
598a0d0990 fix for choosing uncommitted templates as a User Style Template 2007-10-18 23:17:18 +00:00
Colin Kuskie
05b33ec3b8 temporary hack to fix a Test::MockObject related test failure 2007-10-17 15:47:31 +00:00
Colin Kuskie
8d7c31253b add a new test to check getting a user with an undefined Id 2007-10-17 14:36:17 +00:00
Graham Knop
f8781fede9 setHelp not used anymore, clean up tests 2007-09-21 02:30:12 +00:00
Diona Kidd
88c75626f4 Added more tests for the inbox object 2007-09-13 23:38:06 +00:00
Doug Bell
50eb1ab3d3 added some more macro tests 2007-09-13 21:56:37 +00:00
Diona Kidd
eb53bc67ff adding test for message body 2007-09-13 04:54:14 +00:00
Diona Kidd
45b84009df adding test for message body 2007-09-13 04:49:31 +00:00
Diona Kidd
ffd2661c7f Building up tests for Inbox.pm 2007-09-13 04:37:55 +00:00
Diona Kidd
6ce211e805 Adding base test for Inbox.pm 2007-09-13 04:07:35 +00:00
Graham Knop
16d47bd31b test fixes 2007-09-12 21:43:48 +00:00
Graham Knop
afdc412033 fix image library selection 2007-09-12 20:51:23 +00:00
Doug Bell
4d36c1e6c2 add: WebGUI::Form::CheckList now has optional select all button 2007-09-12 00:50:54 +00:00
Graham Knop
a6018f798c fix quote tests 2007-08-30 00:15:27 +00:00
Graham Knop
847fce0689 fix tests, typo 2007-08-24 08:23:33 +00:00
Diona Kidd
5efea40a96 Adding SQLForm test 2007-08-23 02:30:22 +00:00
Graham Knop
db59a2eb7a Some test fixes. 2007-08-15 19:14:08 +00:00
JT Smith
40a4c3c487 fixing bugs reported by tests 2007-07-29 21:26:35 +00:00
Colin Kuskie
a9f45865e6 Add optional database connection parameters to the DatabaseLink. This
replaces the old, automatic setting of LongReadLen and LongTruncOk in
SQL.pm, and is much more flexible.
Fix some documentation with allowMacroAccess in the DatabaseLink.
Additional tests for DatabaseLink.
Document the new parameter behavior in the changelog and gotchas file.
2007-07-25 23:46:20 +00:00
Colin Kuskie
8261c896a6 Add missing docs to ->set, for which params are allowed in the object/db.
Add missing allowMacroAccess to default dbLink.
Add several tests for create, get, delete, etc.
2007-07-24 23:50:22 +00:00
Colin Kuskie
226dd2cf21 Add tests for WebGUI::Storage::Image, and give its getThumbnailUrl method
some error handling.
2007-07-24 03:40:57 +00:00
Colin Kuskie
07cb430be4 update ProfileEnabled test for new SubscriptionGroup form control. It is not supposed to be profile enabled 2007-07-24 03:37:00 +00:00
Colin Kuskie
e97d44142a update test due to changes in i18n files 2007-07-24 03:35:34 +00:00
Colin Kuskie
86d92d68a8 add deleteFile tests to Image.t 2007-07-23 18:14:40 +00:00