Files
saasshop/tests/Feature/AdminPlatformOrderToolAnchorButtonShouldKeepClassAndAriaLabelSupportTest.php

20 lines
630 B
PHP

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