mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
20 lines
539 B
PHP
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());
|
|
}
|
|
}
|