Files
pricebuddy/tests/Unit/Services/Ai/FetchPageHtmlToolTest.php
JeremyandClaude Opus 4.8 73a8bead6a fix: test and ci cleanup
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 15:09:50 +10:00

20 lines
539 B
PHP

<?php
namespace Tests\Unit\Services\Ai;
use App\Models\Store;
use App\Services\Ai\HealingContext;
use App\Services\Ai\HtmlSafety;
use App\Services\Ai\Tools\FetchPageHtmlTool;
use Tests\TestCase;
class FetchPageHtmlToolTest extends TestCase
{
public function test_description_carries_the_shared_untrusted_html_rule(): void
{
$tool = new FetchPageHtmlTool(new HealingContext('https://example.com', new Store));
$this->assertStringContainsString(HtmlSafety::UNTRUSTED_RULE, (string) $tool->description());
}
}