Skip to content

Commit d175d37

Browse files
authored
Merge pull request #428 from omaresmael/patch-1
Add `assertEmittedTo` method to the docs
2 parents 2edb600 + c855a28 commit d175d37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing.blade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ public function the_component_can_render()
276276
->assertNotEmitted('foo');
277277
// Assert that the "foo" event was NOT emitted
278278

279+
->assertEmittedTo('bar','foo');
280+
// Assert that the "foo" event was emitted to "bar" component
281+
279282
->assertHasErrors('foo');
280283
// Assert that the "foo" property has validation errors
281284

0 commit comments

Comments
 (0)