补强工具锚点组件四要素兼容护栏

This commit is contained in:
萝卜
2026-03-19 05:39:19 +08:00
parent 919f3e298f
commit 164b6e8fee

View File

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