commit melhorias sgf
This commit is contained in:
@@ -9,6 +9,7 @@ final class TestingDatabaseGuard
|
||||
{
|
||||
public static function assertSafe(?string $connection = null): void
|
||||
{
|
||||
if(app()->environment('budget-testing')&&config('sgf_single_installation.enabled')===true){\App\Shared\Installation\CompositionRuntime::assert($connection);return;}
|
||||
$name = $connection ?: config('database.default');
|
||||
$config = config("database.connections.{$name}", []);
|
||||
if(app()->environment(['testing','browser-testing'])&&(config('sales_ledger.synthetic_enabled')===true||config('cost_ledger.synthetic_enabled')===true||config('industrial_ledger.synthetic_enabled')===true)
|
||||
|
||||
Reference in New Issue
Block a user