Commit graph

1048 commits

Author SHA1 Message Date
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
Colin Kuskie
75cf3923ad More Vendor POD and tests. new and created are both basically tested. 2008-08-13 18:47:04 +00:00
Colin Kuskie
dfefa8d871 Update POD for Vendor.
Add a basic Vendor test.
2008-08-13 17:10:45 +00:00
Colin Kuskie
4372c2e5e0 Update the Photo view.t test to account for pagination. 2008-08-12 22:22:27 +00:00
Colin Kuskie
cf060371a4 adjust number of tests since one was added 2008-08-09 18:00:47 +00:00
Colin Kuskie
68085e440f Fix the failing test, there were two issues.
1) _create_interleaved_items does not return anything useful.
2) $items, the first arg to the sub, has to be an array ref.
2008-08-08 17:56:23 +00:00
Kaleb Murphy
173c2a12cd Form/* now all use getOriginalValue and getDefaultValue. This resolves the Layout bug where all the check lists could not be unchecked. Tests were updated, but still need a major overhaul. 2008-08-08 14:52:53 +00:00
Graham Knop
f082e2d14e request->body and request->param should be the same in tests 2008-08-07 22:55:35 +00:00
Graham Knop
c84c8b0dc6 skip Perl::Critic tests if unable to load modules 2008-08-07 22:55:17 +00:00
Kaleb Murphy
2cce90f150 Rolled back to 7186 removing CheckList changes 2008-08-07 20:33:07 +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
Kaleb Murphy
a300ce8194 Layout can now uncheck all hidden assets. CheckList now has its own getValue which does not call getDefaultValue. 2008-08-07 19:21:12 +00:00
Graham Knop
f4f6d19e96 fixed: user profile defaults can contain arbitrary perl code 2008-08-07 18:44:17 +00:00
Colin Kuskie
b47318c786 tweak the {Ship,Pay}Driver tests a bit, looking for safe copies of data 2008-08-06 04:10:12 +00:00
Colin Kuskie
2f72b6352c Remove debugging output. 2008-08-05 03:58:17 +00:00
Kaleb Murphy
e7f5948ce1 Fixed Form Date and DateTime to properly handle mysql and epoch times. Added tests to make sure they work. 2008-08-04 20:23:13 +00:00
Kaleb Murphy
a81999d5ea Date and DateTime tests. 2008-08-04 18:33:28 +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
19987b53b4 Fix Stow to always return safe copies of stowed data.
And test it.
2008-08-02 22:47:15 +00:00
Colin Kuskie
159f2daf60 Add a test for text MIME type. Note that various tests
may fail based on the version of LWP installed.
2008-08-02 17:39:11 +00:00
Colin Kuskie
3f8c483293 Update this test for new content.
Change arguments in cmp_* to references instead of arrays.
Check number of files dynamically, rather than hardcoded.
2008-08-02 17:09:21 +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
Diona Kidd
178c6340a9 Removing unneeded version tag and workflow info 2008-08-01 14:32:50 +00:00
Diona Kidd
7fbb4a826b Passing tests for badges, tickets and ribbons 2008-08-01 14:23:36 +00:00
Diona Kidd
a4759016ab Adding non-mech test 2008-08-01 13:13:11 +00:00
Chris Nehren
63fe276dac Fixed: splitCSV and joinCSV had issues with complex CSV data. They now use
Text::CSV_XS internally.
2008-07-31 22:02:09 +00:00
Colin Kuskie
85e2c32919 update Sku/Product.t test to include isShippingAddress and getConfiguredTitle 2008-07-31 02:56:09 +00:00
Colin Kuskie
de983627cd update Shop/Address.t test for new Address book fields 2008-07-30 15:51:21 +00:00
Colin Kuskie
ae27f61732 adjust plan now that the isa test is corrected 2008-07-29 22:11:11 +00:00
Colin Kuskie
ae51c67dbe fix typo in ad type checking 2008-07-29 22:09:48 +00:00
Diona Kidd
77aec308c1 Adding additional tests for tickets 2008-07-29 20:08:28 +00:00