Files
laravel-manager/tests/StatisticsOnTestCase.php

19 lines
544 B
PHP

<?php
namespace IriksIT\Manager\Tests;
/** A site that switched the optional statistics on. */
abstract class StatisticsOnTestCase extends TestCase
{
protected array $modules = ['statistics' => true];
protected function defineEnvironment($app): void
{
parent::defineEnvironment($app);
$app['config']->set('manager.statistics.pages', ['/', '/about']);
$app['config']->set('manager.statistics.posts_path', '/blog');
$app['config']->set('manager.statistics.country_header', 'CF-IPCountry');
}
}