phpvms/tests/Pest.php
Arthur Parienté 379a9b38cc
[8.x] feat: improve tests suite (#2166)
* wip

* fix simbrief tests

* more fixes

* run pint

* fix(tests): fake notifications in registration test

* refactor(tests): AI suggestions and performance improvements

* deprecation warning with PHP85

* fix(tests): fake notifications in access with valid invite test

* refactor(build): optimize autoload and remove unnecessary commands

* refactor(tests): update PHPUnit configuration and improve test structure

* refactor: put GeoJson under the right namespace
2026-03-18 16:35:19 -05:00

27 lines
818 B
PHP

<?php
declare(strict_types=1);
/*
|--------------------------------------------------------------------------
| Test Case
|--------------------------------------------------------------------------
|
| The closure you provide to your test functions is always bound to a specific PHPUnit test
| case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may
| need to change it using the "pest()" function to bind a different classes or traits.
|
*/
use App\Services\Installer\SeederService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
pest()
->extend(TestCase::class)
->use(RefreshDatabase::class)
->beforeEach(function (): void {
app(SeederService::class)->syncAllSettings();
})
->in('Unit', 'Feature', 'Arch', '../resources/views');