Files
api/services/nginx/app/tests/Unit/Selfserve/EdgeGatewayDepartmentWorkspaceContractTest.php
T

20 lines
1005 B
PHP

<?php
it('defines the department hardware workspace service payload surface', function (): void {
$service = file_get_contents(app_path('modules/edgegateway/classes/edge_gateway_department_workspace_service.php'));
expect($service)->not->toBeFalse();
expect($service)->toContain('class edge_gateway_department_workspace_service');
expect($service)->toContain("'summary' => \$summary");
expect($service)->toContain("'gateways' => \$includeGateways ? \$gateways : []");
expect($service)->toContain("'lanes' => \$lanes");
expect($service)->toContain("'self_serve' => \$selfServe");
expect($service)->toContain("'gates' => \$gates");
expect($service)->toContain("'relays' => \$relays");
expect($service)->toContain("'scanners' => \$scanners");
expect($service)->toContain("'issues' => \$issues");
expect($service)->toContain("'actions' => \$actions");
expect($service)->toContain("'consumer_contexts'");
expect($service)->toContain("'coverage'");
});