Refactor core test runtime and simplify project documentation
This commit is contained in:
@@ -18,7 +18,6 @@ use Netig\Netslim\Identity\UI\Http\UserController;
|
||||
use Netig\Netslim\Kernel\Http\Infrastructure\Twig\AppExtension;
|
||||
use Netig\Netslim\Kernel\Runtime\Http\MiddlewareRegistrar;
|
||||
use Netig\Netslim\Kernel\Runtime\Module\ModuleRegistry;
|
||||
use Netig\Netslim\Kernel\Runtime\RuntimePaths;
|
||||
use Netig\Netslim\Media\Application\MediaServiceInterface;
|
||||
use Netig\Netslim\Media\UI\Http\MediaController;
|
||||
use Netig\Netslim\Notifications\Application\NotificationServiceInterface;
|
||||
@@ -30,6 +29,7 @@ use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Slim\Factory\AppFactory;
|
||||
use Slim\Views\Twig;
|
||||
use Tests\Support\TestRuntimeFactory;
|
||||
use Twig\Loader\FilesystemLoader;
|
||||
|
||||
final class ContainerWiringIntegrationTest extends TestCase
|
||||
@@ -56,8 +56,7 @@ final class ContainerWiringIntegrationTest extends TestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
RuntimePaths::setApplicationRoot(dirname(__DIR__, 2) . '/tests/Fixtures/Application');
|
||||
ModuleRegistry::reset();
|
||||
TestRuntimeFactory::resetRuntime();
|
||||
foreach (self::ENV_DEFAULTS as $key => $value) {
|
||||
$this->envBackup[$key] = $_ENV[$key] ?? null;
|
||||
$_ENV[$key] = $value;
|
||||
@@ -66,8 +65,6 @@ final class ContainerWiringIntegrationTest extends TestCase
|
||||
|
||||
protected function tearDown(): void
|
||||
{
|
||||
RuntimePaths::resetApplicationRoot();
|
||||
RuntimePaths::resetProjectRoot();
|
||||
ModuleRegistry::reset();
|
||||
foreach (self::ENV_DEFAULTS as $key => $_) {
|
||||
$previous = $this->envBackup[$key] ?? null;
|
||||
|
||||
Reference in New Issue
Block a user