Files
saasshop/tests/Feature/AdminPlatformOrderSummaryTextLinkShouldKeepDataRoleAndAriaLabelTest.php
2026-03-19 05:27:18 +08:00

20 lines
630 B
PHP

<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderSummaryTextLinkShouldKeepDataRoleAndAriaLabelTest extends TestCase
{
use RefreshDatabase;
public function test_summary_text_link_partial_should_keep_data_role_and_aria_label_support_together(): void
{
$partial = file_get_contents(resource_path('views/admin/platform_orders/_summary_text_link.blade.php'));
$this->assertStringContainsString('data-role="{{ $role ??', $partial);
$this->assertStringContainsString('aria-label="{{ $ariaLabel }}"', $partial);
}
}