Commit Graph

75 Commits

Author SHA1 Message Date
Norris Oduro
87acd5cfb2 rename the storedCartWithIdentifier method to storedCartInstanceWithIdentifierExists, changed the signature of the merge and storedCartInstanceWithIdentifierExists methods and add instance to all stored cart retrievals 2020-11-15 05:55:29 +00:00
Norris Oduro
6460326b1a Style CI fixes and remove assertDatabaseCount 2020-11-03 14:03:13 +00:00
Norris Oduro
6ba97cafa8 Use instance in query if there are more than one instances and add tests 2020-11-03 13:55:43 +00:00
Patrick Henninger
238d8cf7d9 Refactor gross price / default into calculators,
Remove gross_price from config replaced with calculator
2020-08-29 16:18:05 +02:00
Patrick Henninger
8ee9bad739 Improve test,
Fix updatedAt(),
2020-05-08 21:17:10 +02:00
Patrick Henninger
53b8015c1f StyleCI 2020-05-08 21:00:41 +02:00
Patrick Henninger
05b99d4e72 Make getters public,
Add Test
2020-05-08 20:58:58 +02:00
Patrick Henninger
008b6f42de SyleCI 2020-02-18 14:55:20 +01:00
sartoric
2078f119ec Enable gross price as base price 2020-02-12 22:42:41 +01:00
Patrick Henninger
7b29fe376d StyleCI 2020-01-18 17:29:06 +01:00
sartoric
9cdacf901c changed the strategy for cart values calculation (taxes per row),
test,
some fixes
2020-01-14 22:33:12 +01:00
sartoric
1ffd1a5dfa test added 2020-01-10 01:54:45 +01:00
Patrick
b8005be37a Update CartTest.php 2019-11-19 01:40:05 +01:00
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
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
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