Files
matomo-proxy-laravel/tests/TestCase.php
2025-08-20 10:16:31 +02:00

38 lines
978 B
PHP

<?php
namespace MattitjaAB\MatomoProxyLaravel\Tests;
use Illuminate\Database\Eloquent\Factories\Factory;
use MattitjaAB\MatomoProxyLaravel\MatomoProxyLaravelServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;
class TestCase extends Orchestra
{
protected function setUp(): void
{
parent::setUp();
Factory::guessFactoryNamesUsing(
fn (string $modelName) => 'MattitjaAB\\MatomoProxyLaravel\\Database\\Factories\\'.class_basename($modelName).'Factory'
);
}
protected function getPackageProviders($app)
{
return [
MatomoProxyLaravelServiceProvider::class,
];
}
public function getEnvironmentSetUp($app)
{
config()->set('database.default', 'testing');
/*
foreach (\Illuminate\Support\Facades\File::allFiles(__DIR__ . '/database/migrations') as $migration) {
(include $migration->getRealPath())->up();
}
*/
}
}