U composer, BF test
This commit is contained in:
parent
7adc6f5cb7
commit
8deff96c0e
|
|
@ -26,7 +26,7 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
|
"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"
|
"mockery/mockery": "^1.5"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -351,11 +351,11 @@ class ProductActionTest extends TestCase
|
||||||
$product->actions()->create([
|
$product->actions()->create([
|
||||||
'events' => ['purchased'],
|
'events' => ['purchased'],
|
||||||
'class' => 'App\\Actions\\SendThankYouEmail',
|
'class' => 'App\\Actions\\SendThankYouEmail',
|
||||||
'defer' => false,
|
'defer' => true,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$purchase = $user->purchase($product, 1);
|
$purchase = $user->purchase($product, 1);
|
||||||
|
|
||||||
$this->assertEquals(1, $purchase->actionRuns()->count());
|
$this->assertEquals(2, $purchase->actionRuns()->count());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue