Skip to content

Update events.md #693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion events.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
git: f28266e681ad56973a00c7990dba526128d3b5fd
git: e75354ea889c0d73fcc77fe28c3f8aa13407955d
---

# События (Events)
Expand Down Expand Up @@ -917,6 +917,9 @@ test('orders can be shipped', function () {
// Утвердите, что событие было отправлено дважды...
Event::assertDispatched(OrderShipped::class, 2);

// Подтвердите, что событие было отправлено один раз...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Кажется странным, что "Утвердите", что "Подтвердите"

Event::assertDispatchedOnce(OrderShipped::class);

// Утвердите, что событие не было отправлено...
Event::assertNotDispatched(OrderFailedToShip::class);

Expand Down Expand Up @@ -952,6 +955,9 @@ class ExampleTest extends TestCase
// Утвердите, что событие было отправлено дважды...
Event::assertDispatched(OrderShipped::class, 2);

// Подтвердите, что событие было отправлено один раз...
Event::assertDispatchedOnce(OrderShipped::class);

// Утвердите, что событие не было отправлено...
Event::assertNotDispatched(OrderFailedToShip::class);

Expand Down