21 lines
931 B
PHP
21 lines
931 B
PHP
<?php
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
|
|
|
// Synthetic test asset only: no document, account or active database writes.
|
|
require dirname(__DIR__).'/vendor/autoload.php';
|
|
require __DIR__.'/portal-qa-environment.php';
|
|
$target = portalQaEnvironment();
|
|
$app = require dirname(__DIR__).'/bootstrap/app.php';
|
|
$app->make(Kernel::class)->bootstrap();
|
|
$identity = portalQaAssertTarget($target);
|
|
$file = storage_path('app/private/investmoz-v2/portal-audit/consumer-workflow-synthetic.png');
|
|
if (! is_file($file)) {
|
|
$image = imagecreatetruecolor(500, 500);
|
|
imagefill($image, 0, 0, imagecolorallocate($image, 225, 240, 230));
|
|
imagestring($image, 5, 45, 220, 'QA synthetic workflow image', imagecolorallocate($image, 0, 70, 40));
|
|
imagepng($image, $file);
|
|
imagedestroy($image);
|
|
}
|
|
echo json_encode(['target' => $identity, 'synthetic_only' => true, 'sha256' => hash_file('sha256', $file), 'active_writes' => 0]).PHP_EOL;
|