补强平台订单动作组件文案兼容护栏
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminPlatformOrderActionPartialsShouldKeepLabelSupportTest extends TestCase
|
||||||
|
{
|
||||||
|
use RefreshDatabase;
|
||||||
|
|
||||||
|
public function test_action_partials_should_keep_label_support_after_aria_label_extension(): void
|
||||||
|
{
|
||||||
|
$summaryPartial = file_get_contents(resource_path('views/admin/platform_orders/_summary_text_link.blade.php'));
|
||||||
|
$toolPartial = file_get_contents(resource_path('views/admin/platform_orders/_tool_anchor_button.blade.php'));
|
||||||
|
|
||||||
|
$this->assertStringContainsString('{{ $label ??', $summaryPartial);
|
||||||
|
$this->assertStringContainsString('{{ $label ??', $toolPartial);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user