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