From 41c97be1e8ea34e375f38546e7b5e028a5bdbfc4 Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Wed, 11 Sep 2024 23:39:49 +0300 Subject: [PATCH 1/3] laravel 11 for laravel-wallet:^10.0 --- composer_10.0.json | 12 ++++++------ composer_10.1.json | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/composer_10.0.json b/composer_10.0.json index 83abe56..534aade 100644 --- a/composer_10.0.json +++ b/composer_10.0.json @@ -25,12 +25,12 @@ "bavix/laravel-wallet": "10.0.*" }, "require-dev": { - "brianium/paratest": "^7.0", - "nunomaduro/collision": "^7.0", - "orchestra/testbench": "^v8.0", - "phpunit/phpunit": "^10.0", - "rector/rector": "^0.12.5", - "symplify/easy-coding-standard": "^10.0" + "brianium/paratest": "^7.4", + "nunomaduro/collision": "^8.0", + "orchestra/testbench": "^9.0", + "phpunit/phpunit": "^10.5", + "rector/rector": "^0.19", + "symplify/easy-coding-standard": "^12.1" }, "autoload": { "psr-4": { diff --git a/composer_10.1.json b/composer_10.1.json index 7531f1d..5500768 100644 --- a/composer_10.1.json +++ b/composer_10.1.json @@ -25,12 +25,12 @@ "bavix/laravel-wallet": "10.1.*" }, "require-dev": { - "brianium/paratest": "^7.0", - "nunomaduro/collision": "^7.0", - "orchestra/testbench": "^v8.0", - "phpunit/phpunit": "^10.0", - "rector/rector": "^0.12.5", - "symplify/easy-coding-standard": "^10.0" + "brianium/paratest": "^7.4", + "nunomaduro/collision": "^8.0", + "orchestra/testbench": "^9.0", + "phpunit/phpunit": "^10.5", + "rector/rector": "^0.19", + "symplify/easy-coding-standard": "^12.1" }, "autoload": { "psr-4": { From a7d4b2381a3fc311823bba519abfef614b77026e Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Wed, 11 Sep 2024 23:45:34 +0300 Subject: [PATCH 2/3] wallet-versions update --- .github/workflows/phpunits.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/phpunits.yaml b/.github/workflows/phpunits.yaml index 29c4f29..492a8a7 100644 --- a/.github/workflows/phpunits.yaml +++ b/.github/workflows/phpunits.yaml @@ -18,7 +18,7 @@ jobs: strategy: matrix: - wallet-versions: [ 11.3, 11.2, 11.1, "11.0", 10.1, "10.0", 9.6, 9.5, 9.4, 9.3, 9.2, 9.1, "9.0", 8.4, 7.3 ] + wallet-versions: [ 11.3, 10.1, 9.6, 8.4, 7.3 ] php-versions: [ 8.3 ] databases: [ pgsql, mysql ] caches: [ redis, memcached ] From 63acbef72ea1f713f3aa5f58f7b6c7081dbb3ac3 Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Wed, 11 Sep 2024 23:52:48 +0300 Subject: [PATCH 3/3] revert --- .github/workflows/phpunits.yaml | 2 +- composer_10.0.json | 12 ++++++------ tests/Units/CartTest.php | 2 ++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/phpunits.yaml b/.github/workflows/phpunits.yaml index 492a8a7..29c4f29 100644 --- a/.github/workflows/phpunits.yaml +++ b/.github/workflows/phpunits.yaml @@ -18,7 +18,7 @@ jobs: strategy: matrix: - wallet-versions: [ 11.3, 10.1, 9.6, 8.4, 7.3 ] + wallet-versions: [ 11.3, 11.2, 11.1, "11.0", 10.1, "10.0", 9.6, 9.5, 9.4, 9.3, 9.2, 9.1, "9.0", 8.4, 7.3 ] php-versions: [ 8.3 ] databases: [ pgsql, mysql ] caches: [ redis, memcached ] diff --git a/composer_10.0.json b/composer_10.0.json index 534aade..83abe56 100644 --- a/composer_10.0.json +++ b/composer_10.0.json @@ -25,12 +25,12 @@ "bavix/laravel-wallet": "10.0.*" }, "require-dev": { - "brianium/paratest": "^7.4", - "nunomaduro/collision": "^8.0", - "orchestra/testbench": "^9.0", - "phpunit/phpunit": "^10.5", - "rector/rector": "^0.19", - "symplify/easy-coding-standard": "^12.1" + "brianium/paratest": "^7.0", + "nunomaduro/collision": "^7.0", + "orchestra/testbench": "^v8.0", + "phpunit/phpunit": "^10.0", + "rector/rector": "^0.12.5", + "symplify/easy-coding-standard": "^10.0" }, "autoload": { "psr-4": { diff --git a/tests/Units/CartTest.php b/tests/Units/CartTest.php index 4febd06..14de21b 100644 --- a/tests/Units/CartTest.php +++ b/tests/Units/CartTest.php @@ -123,6 +123,8 @@ public function testEagerLoaderPay(): void foreach ($products as $product) { $productIds[] = $product->getKey(); self::assertSame(0, (int) $product->balance); + self::assertTrue($product->wallet->saveQuietly()); + self::assertTrue($product->wallet->exists); } /** @var Product[] $products */