Working state but no uploads

This commit is contained in:
julien
2026-03-16 11:48:26 +01:00
parent e24ee5d622
commit 8e59daa4cd
21 changed files with 353 additions and 119 deletions

View File

@@ -14,25 +14,6 @@ use Slim\App;
final class BootstrapTest extends TestCase
{
private array $envBackup = [];
protected function setUp(): void
{
$this->envBackup = [
'APP_AUTO_PROVISION' => $_ENV['APP_AUTO_PROVISION'] ?? null,
];
}
protected function tearDown(): void
{
foreach ($this->envBackup as $key => $value) {
if ($value === null) {
unset($_ENV[$key]);
} else {
$_ENV[$key] = $value;
}
}
}
public function testInitializeInfrastructureReturnsPreloadedContainer(): void
{
@@ -55,10 +36,8 @@ final class BootstrapTest extends TestCase
self::assertSame($app, $bootstrap->createHttpApp());
}
public function testInitializeReturnsPreloadedAppWhenAutoProvisionIsDisabled(): void
public function testInitializeReturnsPreloadedApp(): void
{
$_ENV['APP_AUTO_PROVISION'] = '0';
$bootstrap = Bootstrap::create();
$container = $this->createStub(ContainerInterface::class);
$app = AppFactory::create();