补强工具锚点组件四要素兼容护栏
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user