php-agentic/tests/Feature
darbs-claude 7fba0955e4
Some checks failed
CI / PHP 8.3 (pull_request) Failing after 1m35s
CI / PHP 8.4 (pull_request) Failing after 1m31s
refactor: namespace cache keys to prevent collisions (closes #20)
Replace hardcoded cache key in ForAgentsController with a config-based
key (`mcp.cache.for_agents_key`) and configurable TTL
(`mcp.cache.for_agents_ttl`). This prevents collisions with other modules
or packages that might use the same flat cache key.

- Add `cacheKey()` method on ForAgentsController, reads from config
- Add `cache` section to config.php with default key and TTL
- Dynamic Cache-Control max-age now follows the configured TTL
- Add ForAgentsControllerTest covering key customisation,
  cache storage, invalidation, TTL, and response structure

Refs: TODO.md CQ-003

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 06:18:30 +00:00
..
Jobs test: add job tests for BatchContentGeneration and ProcessContentTask (#10) 2026-02-23 00:56:16 +00:00
Livewire test: add Livewire component tests for all 12 admin components 2026-02-23 01:16:33 +00:00
.gitkeep Initial commit 2026-01-26 23:20:30 +00:00
AgentApiKeyServiceTest.php refactor(tests): convert IpRestrictionServiceTest to Pest functional syntax 2026-01-29 18:50:41 +00:00
AgentApiKeyTest.php refactor(tests): convert AgentApiKey tests to Pest functional syntax 2026-01-29 18:42:56 +00:00
AgentPhaseTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
AgentPlanTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
AgentSessionTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
ApiKeyManagerTest.php refactor: unify ApiKeyManager to use AgentApiKey model (#19) 2026-02-23 06:09:05 +00:00
ContentServiceTest.php refactor: rename namespace Core\Agentic to Core\Mod\Agentic 2026-01-27 16:12:58 +00:00
ForAgentsControllerTest.php refactor: namespace cache keys to prevent collisions (closes #20) 2026-02-23 06:18:30 +00:00
IpRestrictionServiceTest.php refactor(tests): convert IpRestrictionServiceTest to Pest functional syntax 2026-01-29 18:50:41 +00:00
PlanTemplateServiceTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
PromptVersionTest.php test: add PromptVersion model tests 2026-02-23 05:18:37 +00:00
SecurityTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00