U composer, BF test

This commit is contained in:
Fabian @ Blax Software 2025-12-03 14:39:07 +01:00
parent 7adc6f5cb7
commit 8deff96c0e
2 changed files with 3 additions and 3 deletions

View File

@ -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": {

View File

@ -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());
}
}