php-agentic/tests/Feature
darbs-claude 26b0f19f4c
Some checks failed
CI / PHP 8.2 (pull_request) Failing after 1s
CI / PHP 8.3 (pull_request) Failing after 1s
CI / PHP 8.4 (pull_request) Failing after 1s
CI / Assets (pull_request) Failing after 1s
test: add job tests for BatchContentGeneration and ProcessContentTask (#10)
- tests/Feature/Jobs/BatchContentGenerationTest.php
  - job configuration (timeout, priority, batch size, ShouldQueue)
  - queue assignment to ai-batch with Queue::fake()
  - tag generation (batch-generation + priority:*)
  - job chaining: ProcessContentTask dispatch per task
  - handle() empty-collection path (documented alias-mock limitation)

- tests/Feature/Jobs/ProcessContentTaskTest.php
  - job configuration (tries, backoff, timeout, ShouldQueue)
  - failed() marks task failed with exception message
  - handle() early-exit: missing prompt
  - handle() early-exit: denied entitlement
  - handle() early-exit: unavailable provider
  - handle() success without workspace (no usage recording)
  - handle() success with workspace (entitlement check + usage recording)
  - processOutput() stub behaviour (target absent/present, no crash)
  - variable interpolation: strings, arrays, unmatched placeholders, empty data
  - retry logic: re-dispatch, failed() called on unhandled exception

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 00:56:16 +00:00
..
Jobs test: add job tests for BatchContentGeneration and ProcessContentTask (#10) 2026-02-23 00:56:16 +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 refactor: update namespaces for L1/L2 package convention 2026-01-27 17:34:46 +00:00
AgentPlanTest.php refactor: update namespaces for L1/L2 package convention 2026-01-27 17:34:46 +00:00
AgentSessionTest.php refactor: update namespaces for L1/L2 package convention 2026-01-27 17:34:46 +00:00
ContentServiceTest.php refactor: rename namespace Core\Agentic to Core\Mod\Agentic 2026-01-27 16:12:58 +00:00
IpRestrictionServiceTest.php refactor(tests): convert IpRestrictionServiceTest to Pest functional syntax 2026-01-29 18:50:41 +00:00
PlanTemplateServiceTest.php refactor(tests): convert PlanTemplateServiceTest to Pest functional syntax 2026-01-29 18:56:51 +00:00
SecurityTest.php security: fix SQL injection and add workspace scoping to MCP tools 2026-01-29 12:21:01 +00:00