Commit graph

1709 commits

Author SHA1 Message Date
Graham Knop
39127b7ec0 add tests for url extensions 2009-08-19 18:05:28 +00:00
Colin Kuskie
0762ce1730 Entangle the required and editable properties of Profile fields.
Add tests.  Update i18n for required property hover help.
Upgrade script to set editable=1 on all required fields.
fixes #10781
2009-08-17 19:28:04 +00: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
92815bb75d Change www_delete and www_cut to use either the container, or the parent
as the asset to return the user to after their actions.
Subclass getContainer in the Story, and alias it to getArchive.
Fixes bug 10657.
2009-08-14 19:43:14 +00:00
Colin Kuskie
f69df9b7ca Enable tests to work around HTTP cookie fetching. Finally! 2009-08-14 01:38:44 +00:00
Doug Bell
c804acebc9 removed END block 2009-08-13 23:32:39 +00:00
Doug Bell
0d72cb8cff fixed #10771: setIsPublic uses string as arrayref 2009-08-13 23:23:20 +00:00
Colin Kuskie
f52a3f9bdd Forward port test fix. 2009-08-11 20:51:51 +00:00
Colin Kuskie
51aa116377 Forward port WEBGUI_LIVE switch addition to Event/edit.t 2009-08-11 20:18:58 +00:00
Colin Kuskie
9182ce5288 Fix queryIsAllowed to look at the first word in the query, regardless of punctuation or whitespace.
Add tests for queryIsAllowed.
2009-08-11 00:11:10 +00:00
Martin Kamerbeek
46829ac970 Adding return JSON on specific requeest feature to template. 2009-08-10 12:42:33 +00:00
Colin Kuskie
5675c1a3a3 Add tests for getUnreadMessagesForUser 2009-08-09 23:35:20 +00:00
Colin Kuskie
af2d858f68 Revision Event storage locations. 2009-08-09 04:35:16 +00:00
Henry Tang
fe99aa7665 Fixed version tag modes bug #10689 2009-08-07 18:02:25 +00:00
Patrick Donelan
146373937d Fixed two new Survey bugs
* Survey response startDate stored twice
startDate was being stored both in a column in Survey_response and also inside the
serialised responseJSON. Consolidated to column and moved startDate methods to
Survey.pm where they are actually used. Was not causing errors because both copies
were initialised to "now" at response creation time, and then never changed (this is also
why we don't need any repair code to fix existing survey repsonses in the wild).

* Survey ExpireIncompleteSurveyResponses Workflow Activity not enabled
The only time you'd actually want to modify startDate is when you're trying to simulate
response expiry in test code, which is why I found the above bug when I was writing the
missing test suite for ExpireIncompleteSurveyResponses. Along with test suite, added
upgrade code to enable workflow activity and add it  to the Daily Maintenance Tasks
workflow. Also made minor fixes to the workflow activity, such as making sure it uses
the correct isComplete code.
2009-08-07 01:08:39 +00:00
Colin Kuskie
3b577599f5 Forward port XML encoding for template based RSS feeds in the Gallery. 2009-08-05 22:16:38 +00:00
Colin Kuskie
55e0feb687 Extend WebGUI::HTML::filter to also do encode XML entities. 2009-08-05 21:47:14 +00:00
Colin Kuskie
4ecc2c725e Forward porting Event iCal end day date math fix. 2009-08-03 22:56:10 +00:00
Colin Kuskie
ecd89d349a Forward porting calendar non-inclusive end times fix. 2009-08-03 20:05:34 +00:00
Doug Bell
c0fe0a7765 change "testing" to "no_email" for inbox messages 2009-07-31 21:02:51 +00:00
Colin Kuskie
31544f13b0 Remove Product test debug diag. 2009-07-27 16:24:19 +00:00
Colin Kuskie
e8bfd8a0a7 Empty warranty, brochure and manual show empty areas in the Product. 2009-07-27 16:21:04 +00:00
Colin Kuskie
7432407888 Use gateway macro for survey.css link in default survery take template. 2009-07-26 16:52:38 +00:00
Colin Kuskie
7325846965 Rename a test. templateChecker is now badGatewayMacros, cuz
that's what it tests.
2009-07-25 23:37:04 +00:00
Colin Kuskie
f88d2f9364 Remove unused modules. 2009-07-25 23:35:00 +00:00
Colin Kuskie
1a74cb056d Fix the separator macro. Adds a method to WebGUI::HTML that splits
content based on the separator macro, and does a best effort to fill in
tags that the splitting breaks by and start and end tags.
Update Post and Article to use it.
2009-07-25 04:30:28 +00:00
Colin Kuskie
5dbea78e69 Move splitTag tests into a HTML subdir, for congruency with other module subtests. 2009-07-24 22:46:34 +00:00
Colin Kuskie
4226ef211f Remove autocommit from addRev in Story, because it committed the
story before the keywords were set, which messed up searching.
Adjust tests to request autocommit on all submitted stories.
2009-07-24 17:26:50 +00:00
Colin Kuskie
f34dce2c10 More DateTime test fixes. 2009-07-24 02:48:47 +00:00
Colin Kuskie
9259e1db23 And restore the original method, and add tests to catch the approximation in Session/DateTime.t instead
of relying on Asset/Story.t
2009-07-24 00:12:56 +00:00
Colin Kuskie
3c4ae9aa82 Refactor exact duration intervals into a separate method. 2009-07-23 23:47:45 +00:00
Graham Knop
56773eefc1 fixed #10590: Session::DateTime->secondsToInterval doesn't allow 7 weeks 2009-07-23 22:04:27 +00:00
Colin Kuskie
a3d8c390bd Fix CDN working with GUID style, vs hex style, storage locations.
Add tests for geting a GUID storage location.
2009-07-23 21:51:45 +00:00
Colin Kuskie
c9fa63bdb7 Give StoryArchive sub-folders the same style as their parent. Fix to hide them
better upcoming.
2009-07-23 21:17:25 +00:00
Colin Kuskie
20814beefd Update to use automatic tag rollback. 2009-07-23 21:02:53 +00:00
Colin Kuskie
33d2914c28 More test maintenance for Payment drivers. 2009-07-23 20:57:51 +00:00
Colin Kuskie
f2a295dc21 Update for recent code swizzle. 2009-07-23 20:52:51 +00:00
Colin Kuskie
0d06c15275 Add a method to update userProfileData column types.
Fix a bug with making a profileField called userId.
Update POD
Added several profileField tests.
2009-07-22 17:59:58 +00:00
Colin Kuskie
2daed0d1cc Fix test. Inheritance wasn't working with the package defined inside
the test.
2009-07-22 00:20:44 +00:00
Colin Kuskie
a84d352f21 update test for new deep storage 2009-07-21 23:42:58 +00:00
Colin Kuskie
0af4acdfad Allow storage locations to have subdirectories, just to support the ZipArchive. 2009-07-21 21:44:31 +00:00
Colin Kuskie
c668226651 Fix Keywords so that by default, only Keywords from published assets are returned.
Reported as bug against the StoryManager, but also affects Wiki, Shelf.
2009-07-20 16:01:30 +00:00
Colin Kuskie
aa8d98f318 Remove old templates from this test. 2009-07-20 15:42:09 +00:00
Colin Kuskie
6b2935305f Update Ogone tests for new driver code. 2009-07-20 15:37:08 +00:00
Colin Kuskie
dc226e3268 canUse should check whether the driver is enabled or not.
PayDrivers update the local object cache on update.
2009-07-20 15:31:32 +00:00
Patrick Donelan
f9c917e426 Fixes #10660 Crud doesn't like 0 2009-07-18 03:03:22 +00:00
Colin Kuskie
f2bd5d8e48 The shelf now checks for viewing permissions of the products and shelves that it displays.
Template with i18n feedback for users.
2009-07-17 21:01:55 +00:00
Colin Kuskie
c2ffca0845 Remove debug Test module. 2009-07-17 04:15:02 +00:00
Colin Kuskie
713c43976b fix this piece of crap test, again. 2009-07-17 01:45:50 +00:00