File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -935,6 +935,9 @@ test('orders can be shipped', function () {
935
935
// Assert an event was dispatched twice...
936
936
Event::assertDispatched(OrderShipped::class, 2);
937
937
938
+ // Assert an event was dispatched once...
939
+ Event::assertDispatchedOnce(OrderShipped::class);
940
+
938
941
// Assert an event was not dispatched...
939
942
Event::assertNotDispatched(OrderFailedToShip::class);
940
943
@@ -970,6 +973,9 @@ class ExampleTest extends TestCase
970
973
// Assert an event was dispatched twice...
971
974
Event::assertDispatched(OrderShipped::class, 2);
972
975
976
+ // Assert an event was dispatched once...
977
+ Event::assertDispatchedOnce(OrderShipped::class);
978
+
973
979
// Assert an event was not dispatched...
974
980
Event::assertNotDispatched(OrderFailedToShip::class);
975
981
You can’t perform that action at this time.
0 commit comments