U composer, BF test
This commit is contained in:
parent
7adc6f5cb7
commit
8deff96c0e
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue