<?php

namespace Tests\Feature;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

class AdminPlatformOrderSummaryTextLinkShouldKeepAllAttributesSupportTest extends TestCase
{
    use RefreshDatabase;

    public function test_summary_text_link_partial_should_keep_all_attributes_support(): 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);
        $this->assertStringContainsString('title="{{ $title }}"', $partial);
        $this->assertStringContainsString('class="{{ $class ??', $partial);
        $this->assertStringContainsString('href="{!! $href ??', $partial);
        $this->assertStringContainsString('{{ $label ??', $partial);
    }
}
