Yung Han Khoe
4bf3f457de
added a test for bugfix #9851 : New Users have blank profile field privacy settings
2009-06-03 16:55:03 +00:00
Colin Kuskie
61832b62b9
When a user is deleted, delete any address books as well. Uses the API to get the
...
Addresses, too. With tests and upgrade script to take care of old address books.
2009-06-03 02:12:23 +00:00
Doug Bell
1afff052c4
added new API methods to User for easier use
2009-05-15 18:10:22 +00:00
Doug Bell
1f96d708bf
user-services
2009-05-15 18:03:03 +00:00
Doug Bell
0cf79f7264
added new API methods to User for easier use
2009-05-15 18:02:53 +00:00
Doug Bell
93819cda0c
Adding new API to User. get update enable disable
2009-05-14 22:16:50 +00:00
Colin Kuskie
f54e975c14
Enable WebGUI sites to send SMS messages as inbox notifications.
2009-05-13 21:55:33 +00:00
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
Colin Kuskie
2cb8f0ee9a
Coverage tests for various User methods.
2009-04-01 03:10:52 +00:00
Colin Kuskie
83b2657197
add a whole bunch of tests for previously uncovered methods, and improving coverage on some methods
2009-03-31 03:22:41 +00:00
Colin Kuskie
1e38087d80
Tests for profileIsViewable, with high coverage.
2009-03-29 04:39:51 +00:00
Colin Kuskie
06a714ea0c
Add tests for acceptsFriendsRequest.
2009-03-29 04:13:54 +00:00
Colin Kuskie
9e1b9d2f49
Add tests for hasFriends with 100% coverage.
2009-03-28 05:12:23 +00:00
Colin Kuskie
39785cf169
Add tests for 100% coverage of getProfileUrl
2009-03-28 04:55:13 +00:00
Colin Kuskie
1e268ee238
Make User.t use the new automatic config file restorer.
...
Clean up some END block code.
2009-03-28 03:57:30 +00:00
Colin Kuskie
7336d2d630
SMS coding complete, beginning testing.
...
Added getInboxAddresses method to User.pm, with tests.
All SMS/Email address choices are made in Mail/Send, on create
and on send, since that's when it handles groups.
Test variable addresses on creating mails.
Updated t/smtpd.pl to handle receiving and sending multiple messages.
2009-03-17 14:35:13 -07:00
Colin Kuskie
bc3b204d9b
Add a method to return emails for Inbox notifications.
...
Method is driven by profile data and settings.
2009-03-16 11:17:58 -07:00
Graham Knop
4186f74089
fix User test for visitor private messaging change
2009-03-12 20:43:20 +00:00
Graham Knop
24da723629
updating copyright year
2009-02-20 23:47:30 +00:00
Graham Knop
586fdb0ec6
fixing POD issues, User test
2008-11-24 02:27:20 +00:00
Doug Bell
2f8869292f
merging 8374
2008-11-14 22:19:15 +00:00
Chris Nehren
ebd2309104
Added extras to user profile fields. This field can be accessed using the
...
profile.form.element.extras template variable when editing a profile and the
profile.extras field when viewing a template.
2008-10-22 00:20:31 +00:00
Colin Kuskie
bbcee2072f
Add tests for defining multiple IP ranges for admin subnets.
2008-09-25 21:29:43 +00:00
JT Smith
ef120fb06b
Added isVisitor, isAdmin, and isRegistered methods to User object instead
...
of hard coding checks everywhere with group ids. And updated the code base
to match.
2008-09-16 22:32:36 +00:00
Colin Kuskie
ef56d94eaf
Update tests for new profile field handling.
...
Change how the profileField method works in User.pm
Reindent some User.pm method according to WGBP.
2008-08-07 20:30:56 +00:00
Graham Knop
f4f6d19e96
fixed: user profile defaults can contain arbitrary perl code
2008-08-07 18:44:17 +00:00
Colin Kuskie
fd62170df6
Change getGroups to always return safe copies of data.
...
Add tests to check for safe copies.
Add a test for getGroupIdsRecursive.
2008-08-02 22:48:32 +00:00
Colin Kuskie
30e0d913c4
Begin a test for getGroupIdsRecursive
2008-08-01 23:25:35 +00:00
Colin Kuskie
8d561101b5
Add a test to User.t to make sure it isn't leaking groups.
...
Update POD in User.pm and Group.pm.
2008-08-01 23:06:23 +00:00
Doug Bell
4b82481594
changed User.t and Group.t to use a less used ip address to make tests pass on my network that uses 192.168.0.0/16\
...
fixed a logic bug in WebGUI/Workflow/Cron
2008-02-18 06:08:16 +00:00
JT Smith
93b5ca16e4
updating copyright year
2008-02-07 23:28:18 +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
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
d66f8fa337
Add a new test for coverage of isInGroup with a non-existant group
2007-10-19 01:36:09 +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
Colin Kuskie
83310ba311
update copyright on tests
2007-07-07 03:56:44 +00:00
Colin Kuskie
0c9d1f4332
RFE for a new user access method, lookup by username and return
...
an object. Includes tests for validating the code.
2007-07-06 17:53:18 +00:00
Colin Kuskie
2893409d05
add uiLevel tests for Visitor and Admin
2007-06-10 22:55:52 +00:00
Colin Kuskie
907f31b97d
update User test for new User Profile table scheme
2007-05-29 18:09:50 +00:00
Colin Kuskie
81e1001d59
More coverage tests. With the exception of the deprecated identifier method, User.pm is 100% covered
2007-03-04 05:35:47 +00:00
Colin Kuskie
1412f023f1
Fixed a bug in WebGUI::User::profileField, where the check for whether or not
...
a profile field existed in the db always passed because it used quickArray in
scalar context. Since quickArray always returns 1 element, this was always true
and it never returned undef like it was supposed to.
To fix this, I added a new method called quickScalar that returns the first column
from the row as a scalar. It has a basic test in SQL.t.
Then there's the new test in User.t for coverage that exposed this problem, and
I also removed a whole slew of duplicate tests.
2007-03-04 04:18:59 +00:00
Colin Kuskie
1a278fed6c
remove some old debug code and cover the caching of user profile fields on user creation
2007-03-04 03:40:25 +00:00
Colin Kuskie
70d7bb2513
Remove some dead code in Group.t
...
Add more tests for coverage in User.t
2007-02-25 05:57:54 +00:00
Colin Kuskie
128ab06bf6
Built a test for newByEmail and removed the TODO test.
2007-02-24 04:36:11 +00:00
Colin Kuskie
31139678ee
Corner cases for User.pm coverage
...
Converted 2 more queries to use placeholders
2007-02-24 00:37:55 +00:00
Colin Kuskie
2a0eb20bc7
Tests for the canUseAdminMode method of User.pm
...
Uncovered and fixed a bug where $session->user instead of $self was used in canUseAdminMode
Added an explicit test in Config.pm to make sure that array refs can be passed to ->set.
2007-02-23 23:39:35 +00:00
Colin Kuskie
2803ae520c
Ran coverage on User.t and found that we're missing two entire
...
methods, so I added TODO tests for them. Overall coverage is low
as well.
Began converting User.pm to use placeholders.
2007-02-23 22:27:23 +00:00