Commit graph

986 commits

Author SHA1 Message Date
Colin Kuskie
4db53bb8ed Reformat the JSON test for Shop/Tax.t
Add JSON tets to Shop/Transaction.t
Reindent several methods in SQL/ResultSet.pm
add a method for returning a YUI Data Table structure to SQL.pm
2008-03-19 04:33:24 +00:00
Colin Kuskie
94b03aa3f5 Fix a bug in the json method for getting tax data.
Tests for the json method.
A LOT of California tax data for testing.
2008-03-18 23:34:35 +00:00
Colin Kuskie
b2b3ead60a more test maintenance. Add automatically added form elements, change shipperId to getId 2008-03-17 20:18:47 +00:00
JT Smith
3d8b329660 fixed bugs due to changes in code 2008-03-17 18:46:52 +00:00
Colin Kuskie
7f4ebb2c47 options access is now private, removing test. 2008-03-17 17:48:21 +00:00
Yung Han Khoe
f70549720b fix: defaultThingId was not automatically set after creating first thing, also added a test for this. 2008-03-15 15:47:55 +00:00
JT Smith
02199ff58c transaction backend and tests complete 2008-03-14 22:39:38 +00:00
Graham Knop
cef5f68603 Fix test failures 2008-03-13 22:08:24 +00:00
Martin Kamerbeek
c2c258400d Adding the getCart method to PayDriver.pm 2008-03-13 21:18:05 +00:00
JT Smith
7c184b26c3 added getCartBySession() 2008-03-13 21:15:56 +00:00
Yung Han Khoe
9de7e34112 add: Thingy asset 2008-03-13 19:06:18 +00:00
JT Smith
e6d42bd219 added shipping calculation for flat rate 2008-03-13 13:57:44 +00:00
JT Smith
819552ce06 finally got shipping driver management working 2008-03-12 23:18:04 +00:00
Martin Kamerbeek
1658f3957d Added WebGUI::TestException and convert Shop/Pay.t to use it. 2008-03-11 22:07:21 +00:00
Martin Kamerbeek
b8d9d38da6 Require a label to be passed to WebGUI::Shop::Pay->addPaymentGateway 2008-03-11 16:54:20 +00:00
Martin Kamerbeek
60362cb747 - Added tests for Pay
- Fixed some tests/code for PayDriver
 - Added i18n for PayDriver
 - Added a really, really bare-bones Cash plugin.
2008-03-11 16:33:10 +00:00
Martin Kamerbeek
39a0b6ff1f Adding PayDriver code and tests 2008-03-11 13:22:46 +00:00
Colin Kuskie
f40bed7ef3 Add i18n for Tax, for the UI.
Begin to flesh out the DataTable JS for www_view.  Add a method to slurp all the
tax data out of the db at once.
Add a test for the slurp method, and stop using the private sub that used to
do it in the tests.
2008-03-10 04:25:36 +00:00
Colin Kuskie
b9bb5d79ce fix almost all the failing Ship tests 2008-03-09 05:08:22 +00:00
Colin Kuskie
3a6ad8ce1d fix the same failing issues in ShipDriver in FlatRate 2008-03-09 04:36:18 +00:00
Colin Kuskie
7990e0cc38 Fix failing Shop/ShipDriver.t tests. If the definition sub, fields was
changed to properties, and getName is now a class method that requires
a session variable.
2008-03-09 04:33:24 +00:00
Colin Kuskie
52cf8b672c Allow alternations in the tax data, so that it is case insensitive
and allows multiple definitions of an entry (like state, city or country)
2008-03-07 02:16:40 +00:00
Colin Kuskie
50fc494759 optimize the SQL query for getting tax rates 2008-03-06 23:41:16 +00:00
Colin Kuskie
d956e58bd7 Change the Shop::Tax system to be hierarchial.
Update all sample tax tables and tests.
2008-03-06 22:34:21 +00:00
Colin Kuskie
2fc985fe54 fix a failing Shop::Ship test 2008-03-06 17:44:34 +00:00
Colin Kuskie
17faa35f27 coverage tests for AddressBook update 2008-03-06 00:11:10 +00:00
Colin Kuskie
d27ac7a629 Add coverage tests, convert croaks to exceptions. 2008-03-05 23:34:53 +00:00
Doug Bell
3842ebf6fa Added WebGUI::Asset::File::GalleryFile
Changed Photo to subclass WebGUI::Asset::File::GalleryFile
2008-03-05 23:06:58 +00:00
Colin Kuskie
9695b704c5 sideport new SQL.pm macro test for multiline output 2008-03-05 21:47:18 +00:00
Colin Kuskie
cd55ff1a9e Add coverage tests for more bad CSV file handling,
and two files to exercise the header checks in importTaxData
2008-03-05 21:31:29 +00:00
Colin Kuskie
7fa4e945b5 Functional test for multiline output. 2008-03-05 21:30:44 +00:00
Colin Kuskie
8c862439f9 Update the POD for Cart.pm. Return value for addItem is not items in cart, it's the
created item.
Finish up the Tax calculate method, with tests.
2008-03-05 03:37:53 +00:00
Colin Kuskie
2bc6cd49a7 Remove an extra my from Shop::Cart.
Add the getTaxRates method to Tax, with tests.
Add some calculate code to Tax, with tests, which don't pass yet.
2008-03-05 00:22:40 +00:00
Doug Bell
8af6f28988 fix: GalleryAlbum and Photo were not showing correct confirmation messages on editSave
add: Ability to edit comments to Photos
add: Ability to choose which rich editor for Albums
2008-03-04 21:26:30 +00:00
Colin Kuskie
12b72c9b59 More tests for addressBook.
Fixed bugs in delete and getAddresses.
2008-03-03 02:26:46 +00:00
Colin Kuskie
a69dff3dcf Adding Knowmad's excellent Instance test script for exposing JSON
problems in Workflow::Instance
2008-03-02 22:50:46 +00:00
Colin Kuskie
5064a5ac92 Rename the test. Add tests for all the other methods. 2008-03-02 21:21:31 +00:00
Colin Kuskie
0774bf771c Add a few more tests, and some POD to make sure that
new is known to be different from create as an instanciator
versus a constructor.
2008-03-02 16:47:00 +00:00
Colin Kuskie
4b17be6e54 Fix some comment typos in t/Shop/AddressBook
Add tests for WebGUI::Shop::Address
Fix bugs in the upgrade script (missing city entry) and
the Address new method.
2008-03-02 16:36:47 +00:00
Colin Kuskie
b9cf9c15f7 Address book tests for create, session, and initial data on object creation 2008-03-02 05:49:37 +00:00
Colin Kuskie
a0afb34813 stub out Shop::AddressBook tests for new and create 2008-03-01 22:04:42 +00:00
Colin Kuskie
5946fd5476 add a input validation check and test for Tax->calculate 2008-03-01 21:22:53 +00:00
Colin Kuskie
9d377193d3 placeholder for calculate in Shop::Tax.pm 2008-03-01 04:54:21 +00:00
Colin Kuskie
06f52bae9a Fix how logging gets intercepted. It used to be on by default, now it must be turned on. 2008-02-29 22:09:32 +00:00
Graham Knop
8533cf8ae8 fixing test warnings, Storage should always return to the correct directory 2008-02-29 07:00:29 +00:00
Colin Kuskie
aab533623e Add a field to the InvalidParam exception.
Use it in Ship.pm for documenting bad requested classes, and test
its use.
2008-02-29 04:17:23 +00:00
Colin Kuskie
d780700013 Finalize getShippers, along with tests. 2008-02-29 04:03:28 +00:00
Colin Kuskie
1261c96349 add Tests for getShippers, and some code for the method too. 2008-02-29 00:36:39 +00:00
Colin Kuskie
df47d0a07c Add more POD to Pluggable.
Add more POD to FlatRate.pm, for the to be written calculate method.
Build create and new methods for Ship, convert existing code to throw exceptions.
Tests for Ship, that look suspiciously similar to ShipDriver.
2008-02-28 23:22:55 +00:00
Doug Bell
4a65691dcc add: Calendar List view and associated Help
add: Ical Page length
add: WWW::Mech tests for Auth and Redirect
2008-02-28 18:40:06 +00:00