File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3781,6 +3781,11 @@ uses Symfony's test client to render and make requests to your components::
3781
3781
->emit('increaseEvent', ['amount' => 2]) // emit a live event with arguments
3782
3782
;
3783
3783
3784
+ // Assert that the event was emitted
3785
+ $this->componentHasEmittedEvent($render, 'increaseEvent', [
3786
+ 'amount' => 2,
3787
+ ]);
3788
+
3784
3789
// set live props
3785
3790
$testComponent
3786
3791
->set('count', 99)
@@ -3850,7 +3855,7 @@ Use the following assertions to verify event emissions from your live component:
3850
3855
// Call an action that emits an event
3851
3856
$render = $testComponent->call('triggerEvent')->render();
3852
3857
3853
- // Assert that the event was emitted with arguments
3858
+ // Assert that the event was emitted
3854
3859
$this->componentHasEmittedEvent($render, 'event-name', [
3855
3860
'eventArg1' => 'value',
3856
3861
]);
You can’t perform that action at this time.
0 commit comments