From 8deff96c0e1317fbb71cc72d57bee3fe294c729c Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Wed, 3 Dec 2025 14:39:07 +0100 Subject: [PATCH] U composer, BF test --- composer.json | 2 +- tests/Feature/ProductActionTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 6855cca..c3cf9b0 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ }, "require-dev": { "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0", - "phpunit/phpunit": "^10.0|^11.0|^12.0", + "phpunit/phpunit": "^9.0|^10.0|^11.0|^12.0", "mockery/mockery": "^1.5" }, "scripts": { diff --git a/tests/Feature/ProductActionTest.php b/tests/Feature/ProductActionTest.php index c0ff1de..552350a 100644 --- a/tests/Feature/ProductActionTest.php +++ b/tests/Feature/ProductActionTest.php @@ -351,11 +351,11 @@ class ProductActionTest extends TestCase $product->actions()->create([ 'events' => ['purchased'], 'class' => 'App\\Actions\\SendThankYouEmail', - 'defer' => false, + 'defer' => true, ]); $purchase = $user->purchase($product, 1); - $this->assertEquals(1, $purchase->actionRuns()->count()); + $this->assertEquals(2, $purchase->actionRuns()->count()); } }