114 Commits

Author SHA1 Message Date
sartoric
1341863d65 Dispatch "cart.merged" event,added a parameter to avoid dispatching "cart.added" events while merging 2019-11-18 10:34:23 +01:00
Andrew Savchenko
e4e9a6ec6e Add a test case to assert items sequence is kept if the options changed 2019-11-02 14:29:54 +01:00
Patrick Henninger
14e8a40534 Changed $taxRate from private to public, Solve https://github.com/Crinsane/LaravelShoppingcart/issues/436 2019-09-27 19:00:10 +02:00
Patrick
d78b555aa1 Update CartTest.php
Codestyle
2019-06-26 15:38:40 +02:00
Patrick
a464a240e8 Update CartTest.php
Added Test for CartItem.php invalid weight exception.
2019-06-26 15:36:53 +02:00
Patrick Henninger
f4673140f7 Codestyle 2019-04-16 12:12:11 +02:00
Patrick Henninger
279e820760 Fixed weight integration, added testcase, fixed weird readme code example 2019-04-16 12:10:06 +02:00
Patrick Henninger
c0cc008c85 Codestyle
Update version in readme
2019-03-01 15:03:24 +01:00
Patrick Henninger
1499475663 Replaced deprecated OR operator https://getcomposer.org/doc/articles/versions.md#version-range
Added 5.8.* compatibility
Updated dependency versions
Added phpunit result cache to gitignore
2019-03-01 14:59:44 +01:00
Patrick Henninger
1e96466ee4 Added test to ensure everything is ok
https://github.com/Crinsane/LaravelShoppingcart/issues/544
2019-01-21 17:22:05 +01:00
Patrick Henninger
7436422b01 Codestyle 2019-01-14 18:18:21 +01:00
Patrick Henninger
21ebf67f99 Further codestyle changes 2019-01-14 18:05:10 +01:00
Patrick Henninger
d9d28ef8e3 Added test for model using trait
Added readme for CanBeBoughtTrait
https://github.com/Crinsane/LaravelShoppingcart/issues/427
2019-01-14 17:26:24 +01:00
Patrick Henninger
59eadb74a1 Removed Cart facade from coverage (does not provide a public inteterface)
Exclude migrations from coverage
Added tests for InstanceIdentifier
Added InstanceIdentifier support to store, restore and merge
Added weight to CanBeBought trait
Excluded CanBeBought trait from coverage temporarily
2019-01-09 14:08:09 +01:00
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
2248412af5 Improved test a bit 2017-05-21 16:45:08 +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