feat(platform-orders): 退款状态摘要卡支持跳转 payment_status 筛选(含测试)

This commit is contained in:
萝卜
2026-03-11 00:16:33 +00:00
parent b2f09f4c92
commit 778ab4dd90
2 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderRefundPaymentStatusSummaryCardLinksTest extends TestCase
{
use RefreshDatabase;
protected function loginAsPlatformAdmin(): void
{
$this->seed();
$this->post('/admin/login', [
'email' => 'platform.admin@demo.local',
'password' => 'Platform@123456',
])->assertRedirect('/admin');
}
public function test_platform_orders_page_shows_refund_payment_status_summary_card_links(): void
{
$this->loginAsPlatformAdmin();
$this->get('/admin/platform-orders')
->assertOk()
->assertSee('部分退款 / 已退款')
->assertSee('payment_status=partially_refunded')
->assertSee('payment_status=refunded');
}
}