Files
laravel-gost-template/tests/TestCase.php
2026-06-24 17:20:43 +09:00

22 lines
660 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Illuminate\Support\Facades\Artisan;
abstract class TestCase extends BaseTestCase
{
protected function setUp(): void
{
parent::setUp();
// Журнал аудита хранится в отдельном соединении (мера РСБ.3). В тестах
// это in-memory sqlite — создаём схему журнала для каждого теста.
Artisan::call('migrate:fresh', [
'--database' => config('audit.connection'),
'--path' => 'database/migrations/audit',
]);
}
}