Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dependencies to Support Laravel 11 Compatibility #207

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "bumbummen99/shoppingcart",
"name": "zsnakeee/shoppingcart",
"description": "Laravel Shoppingcart",
"keywords": ["laravel", "shoppingcart"],
"version": "1.0.0",
"license": "MIT",
"authors": [
{
Expand All @@ -16,15 +17,15 @@
}
],
"require": {
"illuminate/support": "5.4.*||5.5.*||5.6.*||5.7.*||5.8.*||^6.0||^7.0||^8.0||^9.0",
"illuminate/session": "5.4.*||5.5.*||5.6.*||5.7.*||5.8.*||^6.0||^7.0||^8.0||^9.0",
"illuminate/events": "5.4.*||5.5.*||5.6.*||5.7.*||5.8.*||^6.0||^7.0||^8.0||^9.0",
"nesbot/carbon": "~1.20||^1.26.3||^2.0"
"illuminate/support": "5.4.*||5.5.*||5.6.*||5.7.*||5.8.*||^6.0||^7.0||^8.0||^9.0||^10.0||^11.0",
"illuminate/session": "5.4.*||5.5.*||5.6.*||5.7.*||5.8.*||^6.0||^7.0||^8.0||^9.0||^10.0||^11.0",
"illuminate/events": "5.4.*||5.5.*||5.6.*||5.7.*||5.8.*||^6.0||^7.0||^8.0||^9.0||^10.0||^11.0",
"nesbot/carbon": "~1.20||^1.26.3||^2.0||^3.0"
},
"require-dev": {
"phpunit/phpunit": "~5.0||~6.0||~7.0||~8.0||~9.0",
"phpunit/phpunit": "~5.0||~6.0||~7.0||~8.0||~9.0||~10.0||~11.0",
"mockery/mockery": "^1.0",
"orchestra/testbench": "^3.4|^4.0|^5.0|^6.0"
"orchestra/testbench": "^3.4|^4.0|^5.0|^6.0|^7.0|^8.0|^9.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions tests/CartTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ public function it_use_correctly_rounded_values_for_totals_and_cart_summary()
$this->assertEquals('253,29', $cart->total());

// check that the sum of cart subvalues matches the total (in order to avoid cart summary to looks wrong)
$this->assertEquals($cart->totalFloat(), $cart->subtotalFloat() + $cart->taxFloat());
$this->assertEqualsWithDelta($cart->totalFloat(), $cart->subtotalFloat() + $cart->taxFloat(), 0.0001);
}

/** @test */
Expand Down Expand Up @@ -1593,7 +1593,7 @@ public function it_use_gross_price_and_it_use_correctly_rounded_values_for_total
// check item price total
$this->assertEquals(190, $cartItem->priceTotal);
// check that the sum of cart subvalues matches the total (in order to avoid cart summary to looks wrong)
$this->assertEquals($cart->totalFloat(), $cart->subtotalFloat() + $cart->taxFloat());
$this->assertEqualsWithDelta($cart->totalFloat(), $cart->subtotalFloat() + $cart->taxFloat(), 0.0001);
}

/**
Expand Down