## Summary - move the Laravel application into `apps/platform` and keep the repository root for orchestration, docs, and tooling - update the local command model, Sail/Docker wiring, runtime paths, and ignore rules around the new platform location - add relocation quickstart/contracts plus focused smoke coverage for bootstrap, command model, routes, and runtime behavior ## Validation - `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/PlatformRelocation` - integrated browser smoke validated `/up`, `/`, `/admin`, `/admin/choose-workspace`, and tenant route semantics for `200`, `403`, and `404` ## Remaining Rollout Checks - validate Dokploy build context and working-directory assumptions against the new `apps/platform` layout - confirm web, queue, and scheduler processes all start from the expected working directory in staging/production - verify no legacy volume mounts or asset-publish paths still point at the old root-level `public/` or `storage/` locations Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #213
42 lines
1.6 KiB
PHP
42 lines
1.6 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Support\Facades\View;
|
|
|
|
it('renders template reference, badges, and readable timestamps in policy general cards', function () {
|
|
$html = View::file(
|
|
resource_path('views/filament/infolists/entries/policy-general.blade.php'),
|
|
[
|
|
'getState' => fn (): array => [
|
|
'entries' => [
|
|
['key' => 'Name', 'value' => 'WindowsFirewall Endpointsecurity'],
|
|
['key' => 'Platforms', 'value' => 'windows10'],
|
|
['key' => 'Technologies', 'value' => 'mdm,microsoftSense'],
|
|
['key' => 'Template Reference', 'value' => [
|
|
'templateId' => '19c8aa67-f286-4861-9aa0-f23541d31680_1',
|
|
'templateFamily' => 'endpointSecurityFirewall',
|
|
'templateDisplayName' => 'Windows Firewall Rules',
|
|
'templateDisplayVersion' => 'Version 1',
|
|
]],
|
|
['key' => 'Last Modified', 'value' => '2026-01-03T00:52:32.2784312Z'],
|
|
],
|
|
],
|
|
],
|
|
)->render();
|
|
|
|
expect($html)->toContain('Windows Firewall Rules');
|
|
expect($html)->toContain('Endpoint Security Firewall');
|
|
expect($html)->toContain('Version 1');
|
|
expect($html)->toContain('19c8aa67-f286-4861-9aa0-f23541d31680_1');
|
|
|
|
expect($html)->toContain('mdm');
|
|
expect($html)->toContain('microsoftSense');
|
|
expect($html)->toContain('fi-badge');
|
|
|
|
expect($html)->toContain('2026-01-03 00:52:32');
|
|
expect($html)->not->toContain('T00:52:32.2784312Z');
|
|
|
|
expect($html)->not->toContain('"templateId"');
|
|
});
|