just testing the environment
Some checks failed
Tests / test (push) Has been cancelled

This commit is contained in:
tom.hempel
2026-05-20 07:10:08 +02:00
parent 2a11dfd0d1
commit 06fc134299
56 changed files with 1890 additions and 361 deletions

View File

@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
/**
* Seed the project uploads/ database for local dev and Playwright E2E runs.
*
* Usage: php tests/bin/seed-test-db.php
*/
$root = dirname(__DIR__, 2);
require_once $root . '/vendor/autoload.php';
putenv('QDB_MASTER_KEY=dGVzdC1tYXN0ZXIta2V5LXRoaXQtMzJieXRzIQ==');
if (!defined('QDB_TESTING')) {
define('QDB_TESTING', false);
}
\Tests\Support\DatabaseFixture::forE2E($root)->reset();
echo "Test database seeded in uploads/\n";