mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
ae280016e7
Previously, the `prepareDatabase` method would directly modify the database, booting the app in the process. This would prevent any extenders from being applied, since `->extend()` has no effect once the app is booted. Since the new implementation of `prepareDatabase` simply registers seed data to be applied during app boot, the workaround of sticking this seed data into `prepDb` is no longer necessary, and seed data common to all test cases in a class can be provided in `setUp`. When needed, app boot is explicitly triggered in individual test cases by calling `$this->app()`. |
||
---|---|---|
.. | ||
fixtures | ||
integration | ||
unit | ||
phpunit.integration.xml | ||
phpunit.unit.xml |