Files
2026-07-24 14:19:51 +01:00

42 lines
1.1 KiB
PHP

<?php
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
/*
|--------------------------------------------------------------------------
| Test Case
|--------------------------------------------------------------------------
|
| Application feature tests and module feature tests must both boot the
| Laravel application. Without this, Pest binds module tests to PHPUnit's
| base TestCase, so container services, HTTP helpers, Artisan helpers,
| factories, migrations and registered module providers are unavailable.
|
*/
pest()->extend(TestCase::class)
->use(RefreshDatabase::class)
->in('Feature', '../Modules/*/Tests/Feature');
/*
|--------------------------------------------------------------------------
| Expectations
|--------------------------------------------------------------------------
*/
expect()->extend('toBeOne', function () {
return $this->toBe(1);
});
/*
|--------------------------------------------------------------------------
| Functions
|--------------------------------------------------------------------------
*/
function something()
{
// ..
}