versao compilada
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-15 17:37:00 +02:00
parent 9a96ee8dfe
commit c13f250b87
935 changed files with 210656 additions and 272 deletions
@@ -0,0 +1,14 @@
<?php
ini_set('zend.exception_ignore_args', '1');
putenv('STABILITY_QA_MODE=consumers');
$root = dirname(__DIR__, 2);
$app = require $root.'/storage/app/private/investmoz-v2/portal-audit/portal-stability-source-20261011_083742/tools/portal-stability-runtime.php';
$db = Illuminate\Support\Facades\DB::connection();
$target = (array)$db->selectOne('SELECT current_database() AS database, inet_server_port() AS port');
if ($target !== ['database'=>'stability_consumers_20261011_084534_test','port'=>55441]) throw new RuntimeException('QA only');
$db->beginTransaction();
$db->statement('SET TRANSACTION READ ONLY');
try {
$b=app(App\Services\Mne\BusinessRepository::class)->find('172aa874-98fc-4bf6-b78f-d2e9a386d345');
echo json_encode(['state'=>$b->status,'version'=>$b->version_no,'public_url'=>$b->public_slug ? 'https://portal-investidor.test:18445/negocios/'.$b->public_slug : null],JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);
} finally { $db->rollBack(); }