补强工具锚点组件样式语义兼容护栏

This commit is contained in:
萝卜
2026-03-19 05:31:10 +08:00
parent a8b8883f90
commit 1377edb2c0

View File

@@ -0,0 +1,19 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderToolAnchorButtonShouldKeepClassAndAriaLabelSupportTest extends TestCase
{
use RefreshDatabase;
public function test_tool_anchor_button_partial_should_keep_class_and_aria_label_support_together(): void
{
$partial = file_get_contents(resource_path('views/admin/platform_orders/_tool_anchor_button.blade.php'));
$this->assertStringContainsString('class="{{ $class ??', $partial);
$this->assertStringContainsString('aria-label="{{ $ariaLabel }}"', $partial);
}
}