Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use RuntimeException;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
protected function setUp(): void
{
parent::setUp();
// BELANGRIJK: Voorkom dat tests op productie draaien
$dbName = config('database.connections.mysql.database');
$env = config('app.env');
if ($env !== 'testing' || $dbName !== 'habbo_testing') {
throw new RuntimeException(
"Tests mogen alleen draaien op de 'habbo_testing' database in testing environment. " .
"Huidige database: {$dbName}, Environment: {$env}",
);
}
}
}