auth tests

This commit is contained in:
Giuseppe Naponiello
2026-06-22 14:31:44 +02:00
parent 34a8ebc6fb
commit cc4e174880
75 changed files with 4679 additions and 168 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace Tests\Support;
use RuntimeException;
/**
* Sollevata dal guard del base TestCase quando la suite sta per girare su un
* database che non è quello di test dedicato (`dyncoll_test`): blocca il run
* prima che RefreshDatabase possa azzerare il database di sviluppo.
*/
class UnsafeTestDatabaseException extends RuntimeException
{
public static function for(string $database): self
{
return new self(
"Test isolation guard: connesso al DB '{$database}', atteso 'dyncoll_test'. "
.'Lancia i test con `make test` (punta al servizio db-test).'
);
}
}