Commit Graph

49 Commits

Author SHA1 Message Date
Patrick Henninger
70073ccb92 manuall readded reverted changes 2019-01-09 13:06:16 +01:00
Patrick Henninger
55f1c4617f Revert "Manually merged https://github.com/Crinsane/LaravelShoppingcart/pull/502"
This reverts commit 5d117a0acd.
2019-01-09 12:22:25 +01:00
Patrick Henninger
5d117a0acd Manually merged https://github.com/Crinsane/LaravelShoppingcart/pull/502
Added more tests
2019-01-08 20:00:28 +01:00
Patrick Henninger
debfeffdb2 Fixed Logout event in test for 5.1->5.7 2019-01-08 02:50:30 +01:00
Patrick Henninger
423e2b7c3f Restructuring
Added codecov
2018-12-28 17:00:55 +01:00
Patrick Henninger
1190d72b52 Add changes from https://github.com/Crinsane/LaravelShoppingcart/pull/350
Add changes from https://github.com/Crinsane/LaravelShoppingcart/pull/349
Add changes from https://github.com/Crinsane/LaravelShoppingcart/pull/478
2018-12-28 03:50:42 +01:00
Patrick Henninger
4cfd3e99b0 Added Cart merge functionality
Added Readme for merge
2018-12-28 03:16:29 +01:00
Patrick Henninger
3ebe09f6ab Renamed migration file
Fixed migration being published multiple times
Added more tests
Fixed setGlobalTax and setGlobalDiscount
2018-12-23 23:24:05 +01:00
Patrick Henninger
9fbc9cd927 Remove type from parameter 2018-12-21 18:48:26 +01:00
Patrick Henninger
d947fe8a57 minor additions 2018-12-21 16:56:54 +01:00
Patrick Henninger
9e4c6c4a71 Adjusted calcualtion tests need specific discount tests 2018-12-21 15:52:00 +01:00
Patrick Henninger
48df3f5d74 Adjusted for global discount
Fixed tests for Laravel 5.7
2018-12-21 15:18:27 +01:00
Rob Gloudemans
711a514c67 Updated PHPUnit to work with version 6.0 required by Laravel 5.5 2017-09-02 10:22:02 +02:00
Rob Gloudemans
39de887e09 Made CartItem implement Jsonable, so it can be cast to json by laravel when building a response 2017-05-21 16:38:33 +02:00
Rob Gloudemans
e5c8d1e6e5 Cleaned up the testsuite a bit 2017-05-20 23:09:27 +02:00
Rob Gloudemans
ce6f0a8d85 Fixed testsuite 2017-05-20 21:52:06 +02:00
jorge
b313f8af43 fix falsy format numbers 2016-09-07 15:05:06 -04:00
jorge
03c9fb1791 Set default number format in config file 2016-08-26 11:08:38 -04:00
Rob Gloudemans
71cb7ce694 Working on improved configuration and automatically destroy cart on user logout 2016-08-03 19:41:35 +02:00
Rob Gloudemans
dfaf428af1 Fixed tests 2016-07-14 10:13:54 +02:00
Matus Rohal
d7a5989e59 Updated: Tests 2016-06-23 14:12:01 +02:00
Rob Gloudemans
18c3477583 Added another test for all calculated values 2016-06-23 08:24:01 +02:00
Rob Gloudemans
c981572626 Added test for toArray() 2016-06-15 10:19:24 +02:00
Rob Gloudemans
13fe150b77 Return empty collection when the cart is empty 2016-06-15 09:59:03 +02:00
Rob Gloudemans
bd7a2ce807 Added test to confirm bugfix in 5af3e90228 2016-05-19 15:21:13 +02:00
Rob Gloudemans
0f20bef1af Large update for version 2.0 2016-05-12 10:19:38 +02:00
Rob Gloudemans
d2ba5aff19 Update 2015-02-19 15:36:24 +01:00
Rob Gloudemans
51be26f5ce Added tests for numeric ids 2014-12-06 15:06:38 +01:00
Rob Gloudemans
af184d3e47 Updated to Laravel 5 2014-10-06 11:04:17 +02:00
Rob Gloudemans
909d54baa6 Fixed tests for php53 2014-08-22 11:00:06 +02:00
Rob Gloudemans
ea2eec4f68 Added events, updated tests, some docblock updates and fixed bug on empty search param 2014-08-22 10:55:56 +02:00
Rob Gloudemans
47da5b128d Added a new associate method, to associate a row in the cart with a model, so you can access the model from the CartRowCollection 2014-03-02 13:43:11 +01:00
Rob Gloudemans
30d789f0c0 Remove item when qty is a negative number + test, also added test for multiple options 2014-03-01 19:52:00 +01:00
Rob Gloudemans
682968587a Fixed test for php5.3 2014-02-12 20:28:38 +01:00
Rob Gloudemans
1b7c78c062 Changed new array syntax to old array syntax for php5.3 2014-02-12 20:18:48 +01:00
Rob Gloudemans
f65e036c66 Updated test class 2014-02-12 20:07:16 +01:00
Rob Gloudemans
c8e37b805e Fixed tests 2014-02-12 20:02:36 +01:00
Rob Gloudemans
7799ab30a2 Updated unit tests for search 2013-07-30 08:55:26 +02:00
Rob Gloudemans
628244bdcf Added a few exceptions that will be thrown at the time of errors. Makes for easier debugging. Also updated README accordingly 2013-07-27 17:46:57 +02:00
Rob Gloudemans
042ab7a45a Updated incorrect use of ksort(), also fixed unittests 2013-07-27 09:55:23 +02:00
Rob Gloudemans
a385410367 Changed array syntax in tests to array() 2013-07-09 15:23:04 +02:00
Rob Gloudemans
b30f64e40c Updated unit tests 2013-07-08 22:47:54 +02:00
Edwin
043e7fb1ce Convert indentation to tabs and change line ending to Unix.
Signed-off-by: Edwin <tkaw220@gmail.com>
2013-07-02 11:44:52 +08:00
Rob Gloudemans
5ebd3d9cd2 Updated the search function, it now does a better search, including options, and it returns the rowid of the found item(s) 2013-06-03 16:10:21 +02:00
Rob Gloudemans
c0210e033a Added a search function 2013-05-31 08:00:30 +02:00
Rob Gloudemans
951c4a8b0f Updated Cart::update() method so you can also update the 'options', also added unit test for it 2013-05-31 07:28:13 +02:00
Rob Gloudemans
13f22ef098 Updated unit tests 2013-05-30 16:59:36 +02:00
Rob Gloudemans
c6473310d2 Added possibility to have multiple cart instances 2013-05-28 22:26:25 +02:00
Rob Gloudemans
fa7e90e48a Initial commit 2013-05-22 20:12:34 +02:00