Files
pricebuddy/tests/Unit/Enums/AiFeatureTest.php
Jeremy 8b02abb0aa feat: AI self-healing store config
Add AiConfigHealer to bootstrap or repair a store config via a
tool-using structured agent (fetch/css/regex tools, HealingContext,
shared StrategyExtractor).

- Run healing before the one-shot enhancer; AI-bootstrap a store config
  when product create would otherwise fail; StoreUrl validation defers
  to self-healing when enabled
- Per-feature AI provider resolution (AiFeature enum) and settings
- Per-store self-healing opt-out plus cooldown; log heal attempts and
  unusable proposals
- Heal with AI action with non-persisting preview/apply/discard in the
  store test modal; prompt switches to browser scraping when blocked
2026-06-09 15:07:40 +10:00

22 lines
555 B
PHP

<?php
namespace Tests\Unit\Enums;
use App\Enums\AiFeature;
use PHPUnit\Framework\TestCase;
class AiFeatureTest extends TestCase
{
public function test_cases_have_string_values(): void
{
$this->assertSame('extraction', AiFeature::Extraction->value);
$this->assertSame('healing', AiFeature::Healing->value);
}
public function test_each_case_has_a_human_label(): void
{
$this->assertSame('Extraction', AiFeature::Extraction->label());
$this->assertSame('Healing', AiFeature::Healing->label());
}
}