Files
api/services/nginx/app/tests/Unit/Workfeed/WorkfeedConfigRouteWiringTest.php
T

13 lines
527 B
PHP

<?php
it('registers module config endpoints for workfeed', function (): void {
$routeFile = app_path('routes/moduleConfigRoute.php');
$content = file_get_contents($routeFile);
expect($content)->not->toBeFalse();
expect($content)->toContain('/workfeed/config');
expect($content)->toContain("requirePermission('modules_workfeed_config')");
expect($content)->toContain("(new workfeed())->config->getConfigRequest()");
expect($content)->toContain("(new workfeed())->config->postConfigRequest()");
});