Files
laravel-manager/tests/AuditOnTestCase.php
T
Matthijs Iriks d2a2a4a373
PR CI / ledger (pull_request) Successful in 4s
PR CI / flow (pull_request) Successful in 5s
PR CI / test (lowest) (pull_request) Successful in 37s
PR CI / test (stable) (pull_request) Successful in 37s
PR CI / security (pull_request) Successful in 51s
PR CI / pr-ci (pull_request) Successful in 1s
PR CI / release-automerge (pull_request) Failing after 4s
Statistics module: visitor statistics without cookies
2026-12-04 02:37:08 +01:00

18 lines
522 B
PHP

<?php
namespace IriksIT\Manager\Tests;
/** A site that switched the optional audit log on (and reviews, so every module is on). */
abstract class AuditOnTestCase extends TestCase
{
protected array $modules = ['audit' => true, 'reviews' => true, 'statistics' => true];
protected function defineEnvironment($app): void
{
parent::defineEnvironment($app);
$app['config']->set('manager.audit.never_ban', ['10.9.9.9']);
$app['config']->set('manager.audit.whole_site_bans', true);
}
}