Commit graph

1629 commits

Author SHA1 Message Date
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
586164d8d0 rfe: VIM perl mode for skeletons 2008-09-16 22:28:17 +00:00
Graham Knop
4f0663f199 allow undef to return from macros, fix empty string returns, test a few more cases 2008-09-16 21:34:48 +00:00
Graham Knop
f0e6a30d75 rewrite macro parser, improving speed and making parameter parsing more sane 2008-09-16 02:09:37 +00:00
Graham Knop
9940ceb7c7 also check syntax of utility scripts and upgrades 2008-09-15 21:51:36 +00:00
Colin Kuskie
7d59a4d7c7 Fix a bug where GUID style userIds were rejected by AssetExportHtml. 2008-09-14 02:39:32 +00:00
Colin Kuskie
0c62ee3666 Add more tests, and fix the POD documentation for the new method. 2008-09-13 04:30:32 +00:00
Colin Kuskie
d43d06ea1a check the logging for duping a singleton 2008-09-12 23:23:52 +00:00
Colin Kuskie
119e5d9645 clean-up, get ready to test set 2008-09-12 23:16:25 +00:00
Colin Kuskie
5689c08bbc Fix multiple bugs related to Singleton workflows:
Can't use undef in a where clause.
    Have to use the same JSON encoding in all places.
Added tests for singleton workflow instances.
2008-09-12 22:59:43 +00:00
Colin Kuskie
c56221f6da fix bad Mock API, new requires a module name 2008-09-12 16:41:48 +00:00
Colin Kuskie
f4c328d555 add spectre mocking and getWorkflow tests 2008-09-11 23:23:27 +00:00
Colin Kuskie
afff4c4844 Back port Haarg's excellent fix for the lack
of query checking in the ErrorHandler test.
2008-09-11 23:16:19 +00:00
Colin Kuskie
6c50ed9851 Updating Workflow/Instance.pm tests 2008-09-11 20:04:39 +00:00
Colin Kuskie
27769a9b68 Test a few more corner cases for effective 100% coverage 2008-09-10 23:27:34 +00:00
Colin Kuskie
e7ea7b3e1f do not check each help label multiple times 2008-09-10 22:56:57 +00:00
Colin Kuskie
ef7be2c377 add more tests to bring Workflow coverage up to 94% 2008-09-09 23:39:52 +00:00
Colin Kuskie
4908ff5ff0 add tests for deleting activities from a workflow 2008-09-09 21:29:43 +00:00
Colin Kuskie
3982ac2d71 add default workflow values tests, and promote and demote activity tests 2008-09-09 20:31:59 +00:00
Colin Kuskie
4d9c57659c add a few more random tests, checking guid validity and getList return type 2008-09-09 03:59:39 +00:00
Colin Kuskie
e86b0b7cc7 add more tests for Workflow mode, and validating the activity that was returned 2008-09-08 23:07:47 +00:00
Colin Kuskie
cbc830123a RFE: Add workflow that checks all products to see if they are close
to a user configured level, and email a group to let them know that
they are close to being out of stock.
2008-09-07 23:14:42 +00:00
Colin Kuskie
4dd7dcfe5e Remove single quote from the list of allowable characters.
Remove single quotes from parsed International macros in the template tester.
2008-09-06 21:25:42 +00:00
Colin Kuskie
528c56a499 Fixed a test that should have been failing for a long time.
getLineage != get('lineage')?
2008-09-06 21:06:43 +00:00
Graham Knop
29a419e1eb added: getLineageIterator method to simplify working on large sets of assets 2008-09-05 22:14:04 +00:00
Doug Bell
01cbbf2e60 added page range to paginator variables 2008-09-03 21:56:43 +00:00
Colin Kuskie
481fded7e7 update the RichEditor test 2008-08-28 13:35:10 +00:00
Colin Kuskie
db3bf2fae2 fix random test failures in item test 2008-08-27 02:05:57 +00:00
Frank Dillon
7901eb9642 Added a config setting that allows email to be piped to the log rather than pass through a mailserver that may or may not exist. Added a TODO test block. 2008-08-26 15:56:21 +00:00
Colin Kuskie
84e8d38525 MiniCart macro tests 2008-08-25 22:00:07 +00:00
Colin Kuskie
1489c9331e add a basic test for CartItemCount macro 2008-08-22 23:09:20 +00:00
Colin Kuskie
6d3ec1e478 all Shop/Vendor API methods are tested 2008-08-22 16:54:36 +00:00
Colin Kuskie
5fc629993a when overriding Log::Log4perl for testing, set the is_debug flag to true 2008-08-21 23:45:00 +00:00
Graham Knop
d881a82fc3 fixing tests 2008-08-21 20:44:33 +00:00
Colin Kuskie
fbc6e55141 fix inheritUrlFromParent 2008-08-21 20:27:30 +00:00
Chris Nehren
36eb8db8fc add ability to show metadata values in head blocks. 2008-08-21 18:51:16 +00:00
Colin Kuskie
90c82daaeb fix a bug where getOptions returns all shipping drivers, regardless of their enabled status 2008-08-20 18:03:46 +00:00
Colin Kuskie
3aefdb6ce5 fix syntax errors 2008-08-20 17:27:39 +00:00
Colin Kuskie
4bcf390ce9 Allow certain fields in Ad and AdSpace to be cleared. Add tests
to verify that it works.
2008-08-20 16:40:55 +00:00
Colin Kuskie
268a3ef3f0 increment number of tests in Shop/Cart.t to match actual number of tests 2008-08-20 16:04:10 +00:00
Diona Kidd
5b89003e24 Adding internationalized message for empty cart 2008-08-20 02:08:19 +00:00
Diona Kidd
94b20d8f49 Adding provision for testing hasTerms method 2008-08-20 02:04:55 +00:00
Colin Kuskie
c6e9d322a8 Fix how update and addRevision handle defaults from the definition subroutine
when it returns an array ref.
2008-08-19 22:03:39 +00:00
Graham Knop
edebe7e2b9 revert oops 2008-08-19 20:48:47 +00:00
Doug Bell
57b8cc4bae fixed: loginBox macro can no longer return the user to the logout page, logging them out 2008-08-19 20:39:43 +00:00
Colin Kuskie
b143a8db6a Fix a bug where looking up non-existant files croaks, instead of propagating
the error back up and trapping it.
2008-08-15 22:46:46 +00:00
Colin Kuskie
3c913228d1 add a test to check inheritUrlFromParent when creating an asset, rather than updating it 2008-08-15 17:50:03 +00:00
Colin Kuskie
fe45029a3a all newByUserId tests 2008-08-14 22:56:17 +00:00
Colin Kuskie
538ec8a7f6 more get and update tests. First test for newByUserId 2008-08-14 18:23:46 +00:00
Colin Kuskie
771b4aeb1e get and update tests 2008-08-13 23:47:26 +00:00