php-content/tests/TestCase.php

32 lines
707 B
PHP
Raw Normal View History

2026-01-26 23:24:57 +00:00
<?php
declare(strict_types=1);
2026-01-26 23:24:57 +00:00
namespace Tests;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Orchestra\Testbench\TestCase as BaseTestCase;
2026-01-26 23:24:57 +00:00
abstract class TestCase extends BaseTestCase
{
use RefreshDatabase;
protected function getPackageProviders($app): array
{
return [
\Core\Tenant\Boot::class,
\Core\Mod\Content\Boot::class,
];
}
protected function getEnvironmentSetUp($app): void
{
$app['config']->set('database.default', 'testing');
$app['config']->set('database.connections.testing', [
'driver' => 'sqlite',
'database' => ':memory:',
'prefix' => '',
]);
}
2026-01-26 23:24:57 +00:00
}