add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
+3 -4
View File
@@ -14,16 +14,15 @@ class PolicyContentService
public function getPolicy(string $type): array
{
$type = strtolower(trim($type));
if (! isset(self::TYPES[$type])) {
if (!isset(self::TYPES[$type])) {
throw new \InvalidArgumentException('Unsupported policy type.');
}
$filename = self::TYPES[$type];
$path = resource_path('policies/'.$filename);
$path = resource_path('policies/' . $filename);
if (! is_file($path)) {
if (!is_file($path)) {
Log::warning('Policy file missing.', ['type' => $type, 'path' => $path]);
return [
'type' => $type,
'title' => $this->titleFor($type),