TenantAtlas/specs/048-backup-restore-ui-graph-safety/quickstart.md
2026-01-11 01:11:55 +01:00

1.1 KiB

Quickstart: Backup/Restore UI Graph-Safety (048)

This quickstart is for validating the UI render Graph-safety guardrails locally.

Prerequisites

  • Laravel Sail running (recommended)
  • Database migrated

Local setup (Sail)

  1. Start Sail
  • ./vendor/bin/sail up -d
  1. Run migrations
  • ./vendor/bin/sail artisan migrate

Run the targeted tests (once implemented)

  • ./vendor/bin/sail artisan test tests/Feature/Filament/BackupSetGraphSafetyTest.php
  • ./vendor/bin/sail artisan test tests/Feature/Filament/RestoreWizardGraphSafetyTest.php

Or run both in one command:

  • ./vendor/bin/sail artisan test tests/Feature/Filament/BackupSetGraphSafetyTest.php tests/Feature/Filament/RestoreWizardGraphSafetyTest.php

Or run via glob:

  • ./vendor/bin/sail artisan test tests/Feature/Filament/*GraphSafety*Test.php

Formatting

  • ./vendor/bin/pint --dirty

Notes

  • These guard tests intentionally fail if any Backup/Restore page render path touches App\\Services\\Graph\\GraphClientInterface.
  • Graph credentials are not required for this phase; tests should pass with Graph effectively disabled.