Graham Knop
492259c93a
remove useless test END blocks
2010-06-10 18:47:53 -05:00
Colin Kuskie
a75cd108b1
Add back code for throwing exceptions when session is not passed
...
to class methods.
2009-04-24 03:47:40 +00:00
Graham Knop
f1759f5cd5
fixing lib paths on some tests
2009-04-23 16:22:17 +00:00
Martin Kamerbeek
c851465bd1
More Tax tests
2009-04-23 10:40:01 +00:00
Martin Kamerbeek
fea09cb7bd
Fixed Tax.t tests. The file that contains them should be renamed to TaxDriver/Generic.t. Will do so when I add the tests for the other taxing
...
components.
2009-04-18 07:35:14 +00:00
Graham Knop
24da723629
updating copyright year
2009-02-20 23:47:30 +00:00
Graham Knop
d6e00cab05
improved performance of file uploads and changed format of created uploads locations, avoiding case sensitivity problems
2008-11-12 01:17:33 +00:00
Colin Kuskie
4ef07e2647
check MIME type for JSON accessor methods in Tax and Transaction
2008-10-26 04:17:33 +00:00
Colin Kuskie
9d45d764b3
better cleanup of products for Shop/Tax test
2008-10-08 20:03:19 +00:00
Colin Kuskie
31659b00a4
Clean up the Storage object created during this test.
2008-07-18 17:51:17 +00:00
Kaleb Murphy
a143368f4f
Tax.t needed to test for default direction of asc, not desc. Fixed.
2008-07-18 17:50:40 +00:00
Colin Kuskie
b03b3b340e
Remove extra whitespace in the testing files.
...
Make importProducts check file headers.
Add testing collateral, and tests
2008-05-27 01:12:01 +00:00
JT Smith
57c85fde5a
changed the name of getCartBySession to newBySession
...
created the CartItemCount and MiniCart macros
added help for MinCart, Cart, Address Book, and Edit Address templates
2008-05-24 23:27:30 +00:00
Colin Kuskie
e0ad88a869
Shop/Tax.t was skipping the wrong number of tests for root
2008-04-24 19:39:46 +00:00
Colin Kuskie
20a2bba8a4
Let 0 be a valid tax rate in the tests.
2008-04-23 03:26:44 +00:00
Colin Kuskie
ec3d2f1eb0
Don't delete the SKUs so that the cart can call onRemoveFromCart
2008-03-19 22:43:05 +00:00
JT Smith
dbbc52d643
proper indent
2008-03-19 21:30:52 +00:00
Colin Kuskie
76811ec791
Note where additional tests need to be written for Shop/{Tax,Transaction}.
2008-03-19 19:04:49 +00:00
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
JT Smith
7c184b26c3
added getCartBySession()
2008-03-13 21:15:56 +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
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
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
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
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
a8598bc108
Finish testing all of shop tax's exceptions.
...
Convert a few exceptions to better types in import.
2008-02-27 23:40:08 +00:00
Colin Kuskie
c613e38995
Input validation tests for importTaxData.
2008-02-18 21:23:43 +00:00
Colin Kuskie
95a327ea62
move the CSV tax table into its own subdirectory
2008-02-18 19:48:42 +00:00
Colin Kuskie
215031bb4e
Renamed the import and export methods to prevent Perl from
...
calling them.
Added code and tests for import method. It needs more testing
for user input validation.
2008-02-18 19:27:45 +00:00
Colin Kuskie
40e4e96a66
check the CSV output made by export
2008-02-17 04:58:51 +00:00
Colin Kuskie
6415b9186f
Added the export method.
...
Basic tests for the export method. Need to check the CSV file
to make sure it's created correctly.
2008-02-16 17:11:10 +00:00
Colin Kuskie
0701adf7e0
Add input validation for the add method, and test it.
...
Now it's time for the import and export methods.
2008-02-16 06:48:00 +00:00
Colin Kuskie
645c21bc3b
Tax: add the delete method, with tests
2008-02-16 05:36:25 +00:00
Colin Kuskie
19591d37d4
Fix a bug in the upgrade script, with a default applied to the wrong column.
...
Built the add method, and tested it, too.
2008-02-15 23:17:52 +00:00
Colin Kuskie
70b8331794
Add the tax table.
...
Add the getItems method, for accessing the entire tax table.
2008-02-15 22:15:58 +00:00
Colin Kuskie
cf3ed73830
Fix a bad use test in Shop/Tax.t
...
Begin Tax.pm, using Class::InsideOut with a basic constructor and a session method.
2008-02-15 18:51:02 +00:00
Colin Kuskie
a476909952
add Tax tests for new and session method
2008-02-15 18:30:31 +00:00