<?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);
    }
}
