Scott Walters
3fe8f9a080
fix nasty data sync bug in WebGUI::User::friends that was causing the friendsGroup assigned to a user t
...
o immediately be lost and replaced a different one in a call to WebGUI::Friends->add, which creates sep
erate instances of users
2012-06-19 18:04:12 -04:00
Colin Kuskie
00ea5c4df8
Add tests for checking user status via get.
2011-06-06 11:00:18 -07:00
Doug Bell
3fbcb4aca9
fix 11945 slow sql for duplicate email lookup
2011-01-03 21:28:41 -06:00
Colin Kuskie
1ff8907bc2
Move all User.t test cleanup out of the END block and into WebGUI::Test->addToCleanup.
2010-11-09 11:16:30 -08:00
Colin Kuskie
897c2e0248
If a user does not have privacy data for a field, check back with the field for the privacy default. Fixes bug #11951 . Added ProfileField cleanup code.
2010-11-09 11:06:57 -08:00
Colin Kuskie
0ef292d381
Update User.t test to handle the removal of group 14, Product Managers.
2010-09-28 21:08:25 -07:00
Colin Kuskie
6c3369d0cb
Revert "use temp config file for testing"
...
This reverts commit 9b725c6d42 .
2010-06-14 15:19:54 -07:00
Graham Knop
9b725c6d42
use temp config file for testing
2010-06-10 10:09:54 -05:00
Graham Knop
b832deecd1
convert all cleanup methods to addToCleanup
2010-06-10 10:09:53 -05:00
Colin Kuskie
06ac0360b6
Update test for new profile field value for gender.
2010-01-11 16:45:27 -08:00
Colin Kuskie
1e98e34128
RE: Profiles, public != visitor. fixes #10907
2009-09-06 19:37:25 -07:00
Colin Kuskie
fea30d0db0
Fix getProfileUrl, so it works with preventProxyCache. fixes #10877
2009-09-02 19:07:54 -07:00
Colin Kuskie
c7a4c173cc
Add tests for new SMS address method.
2009-08-16 16:11:13 +00:00
Patrick Donelan
388a0b1267
Fixed a whole lot of brokenness in Inbox SMS/Email notifications
...
WebGUI::Inbox::Message::create now passes isInbox flag to WebGUI::Mail::Send::create
so that per-user notification settings get used
SMS Gateway setting field is now 'text' instead of 'email' so that user can enter a
properly formed value (such as 'myemailgateway.com', which is not an email address).
Added SMS notification template as distinct from email notification template because
SMSs should not be HTML and in general you will want to make your SMS notification
message a lot shorter than your html email notification message (160 char limits in
many countries). As a result, SMSs are now sent as separate emails to gateway rather
than being CCd on email notification.
Added smsGatewaySubject setting because many SMS Gateways use email subject for
authentication. For consistency, also added Email notification email subject.
Fixed handling of different combinations of site-wide sendInboxNotificationsOnly with
per-user receiveInboxEmailNotifications and receiveInboxSmsEmailNotifications.
* sendInboxNotificationsOnly && receiveInboxEmailNotifications = email notification
* sendInboxNotificationsOnly && !receiveInboxEmailNotifications = no email
* !sendInboxNotificationsOnly = ignore receiveInboxEmailNotifications
* In all cases, SMS is optional and only dependent on receiveInboxSmsEmailNotifications
Updated tests and i18n
2009-08-16 09:42:35 +00:00
Colin Kuskie
f3bc650502
Update User.t to work with CSRF tokens.
2009-07-16 21:39:23 +00:00
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