nimuli/tests/bootstrap.php

10 lines
280 B
PHP

<?php
// Force APP_ENV=testing before anything else loads
// This overrides Docker container OS env (APP_ENV=local) so CSRF is disabled in tests
putenv('APP_ENV=testing');
$_ENV['APP_ENV'] = 'testing';
$_SERVER['APP_ENV'] = 'testing';
require __DIR__.'/../vendor/autoload.php';