## Summary - consolidate internal platform naming from `Tenant` to `Environment` / `ManagedEnvironment` across models, controllers, services, and Filament resources - rename environment-scoped UI surfaces such as dashboards, chooser flows, navigation, and related widgets to match the updated environment-first domain language - align middleware, onboarding/review lifecycle services, jobs, and route/context controllers with the new environment-scoped architecture ## Validation - not rerun as part of this commit/push/PR request ## Notes - branch is 1 commit ahead of `platform-dev` - main commit: `refactor: consolidate internal tenant model naming` Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #355
27 lines
1.0 KiB
PHP
27 lines
1.0 KiB
PHP
<?php
|
|
|
|
use App\Support\Badges\BadgeCatalog;
|
|
use App\Support\Badges\BadgeDomain;
|
|
|
|
it('maps onboarding verification status blocked to a Blocked danger badge', function (): void {
|
|
$spec = BadgeCatalog::spec(BadgeDomain::ManagedEnvironmentOnboardingVerificationStatus, 'blocked');
|
|
|
|
expect($spec->label)->toBe('Blocked');
|
|
expect($spec->color)->toBe('danger');
|
|
expect($spec->icon)->toBe('heroicon-m-x-circle');
|
|
});
|
|
|
|
it('maps onboarding verification status ready to a Ready success badge', function (): void {
|
|
$spec = BadgeCatalog::spec(BadgeDomain::ManagedEnvironmentOnboardingVerificationStatus, 'ready');
|
|
|
|
expect($spec->label)->toBe('Ready');
|
|
expect($spec->color)->toBe('success');
|
|
expect($spec->icon)->toBe('heroicon-m-check-circle');
|
|
});
|
|
|
|
it('normalizes onboarding verification status input before mapping', function (): void {
|
|
$spec = BadgeCatalog::spec(BadgeDomain::ManagedEnvironmentOnboardingVerificationStatus, 'NEEDS ATTENTION');
|
|
|
|
expect($spec->label)->toBe('Needs attention');
|
|
});
|