shopit-back/tests
ncoronel 8ad9b3a4e3 Revert "feat(variants): implement restoration of previously suspended variants with usable dates"
This reverts commit 3a4f6b64d2.
2026-09-16 09:08:43 -03:00
..
Concerns refactor(integration): resolver credenciales mediante instancias 2026-09-04 12:47:47 -03:00
Feature Revert "feat(variants): implement restoration of previously suspended variants with usable dates" 2026-09-16 09:08:43 -03:00
Support fix(tests): isolate databases in memory and reject persistent connections 2026-09-14 12:35:34 -03:00
Unit feat(event): add per-user date change notices 2026-09-15 17:06:12 -03:00
README.md fix(tests): isolate databases in memory and reject persistent connections 2026-09-14 12:35:34 -03:00
TestCase.php fix(tests): isolate databases in memory and reject persistent connections 2026-09-14 12:35:34 -03:00
bootstrap.php fix(tests): isolate databases in memory and reject persistent connections 2026-09-14 12:35:34 -03:00
verify-database-safety.php fix(tests): isolate databases in memory and reject persistent connections 2026-09-14 12:35:34 -03:00

README.md

Database isolation

Run the suite with composer test or vendor/bin/phpunit. Both use tests/bootstrap.php, which forces SQLite :memory: in all environment sources. Tests never need a MySQL test database or the local database credentials.

Tests\TestCase rejects cached configuration and validates the default connection before application providers boot. Its connection factory also rejects persistent databases, URLs, and alternate endpoints for named or dynamically built connections. Tests that need Laravel must extend this base class. Do not bypass these guards to make a failing test pass; adapt database-specific tests to SQLite or use a separately designed disposable database workflow.

php tests/verify-database-safety.php checks the guard and application wiring without running test setup, queries, migrations, or opening PDO connections.

The suite does not validate MySQL-specific behavior when using SQLite.