php-agentic/tests
darbs-claude c315fc43c6
Some checks failed
CI / PHP 8.3 (pull_request) Failing after 1m47s
CI / PHP 8.4 (pull_request) Failing after 1m46s
fix: validate API keys on AgenticManager init (#29)
Log a warning for each AI provider registered without an API key so
that misconfiguration is surfaced at boot time (not silently on the
first API call).  Each message names the environment variable to set:

  ANTHROPIC_API_KEY  – Claude
  GOOGLE_AI_API_KEY  – Gemini
  OPENAI_API_KEY     – OpenAI

Providers without a key remain registered but are marked unavailable
via isAvailable(), preserving backward compatibility.

- Add Log::warning() calls in registerProviders() for empty keys
- Extend AgenticManagerTest with a dedicated 'API key validation
  warnings' describe block (7 new test cases)
- Update DX-002 in TODO.md as resolved

Closes #29

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 11:39:01 +00:00
..
Feature style: fix pint code style issues 2026-02-23 06:42:24 +00:00
Fixtures test: add Livewire component tests for all 12 admin components 2026-02-23 01:16:33 +00:00
Unit fix: validate API keys on AgenticManager init (#29) 2026-02-23 11:39:01 +00:00
UseCase chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
views test: add Livewire component tests for all 12 admin components 2026-02-23 01:16:33 +00:00
Pest.php refactor(tests): convert AgentApiKey tests to Pest functional syntax 2026-01-29 18:42:56 +00:00
TestCase.php test: fix TestCase to use Orchestra Testbench for CI 2026-02-23 06:18:30 +00:00