Skip to content
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

[Docs] Listen to DatabaseRefreshed rather than MigrationsEnded in TestCase #2492

Merged
merged 1 commit into from
Sep 1, 2023

Commits on Aug 22, 2023

  1. Listen to DatabaseRefreshed rather than MigrationsEnded in TestCase

    Listening to `DatabaseRefreshed` event rather than `MigrationsEnded` can avoid issues during testing after `artisan schema:dump` command has been executed.
    
    In fact, `MigrationsEnded` is not called when the migration is based on a `mysql-schema.sql` file and has no migration executed anymore.
    
    `DatabaseRefreshed` is always executed in both cases.
    Okipa committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    edd1368 View commit details
    Browse the repository at this point in the history