fix(platform-orders): align paid-pending governance links with unsynced scope

This commit is contained in:
萝卜
2026-03-16 18:51:23 +08:00
parent 88347d1185
commit 33ab55b10a
3 changed files with 10 additions and 7 deletions

View File

@@ -28,16 +28,16 @@ class AdminDashboardBillingWorkbenchQuickLinksTest extends TestCase
$res->assertSee('快捷筛选');
$res->assertSee('href="/admin/platform-orders?payment_status=unpaid&status=pending"', false);
$res->assertSee('href="/admin/platform-orders?payment_status=unpaid&status=pending&back=%2Fadmin"', false);
$res->assertSee('待支付');
$res->assertSee('href="/admin/platform-orders?payment_status=paid&status=pending&sync_status=unsynced"', false);
$res->assertSee('href="/admin/platform-orders?payment_status=paid&status=pending&sync_status=unsynced&back=%2Fadmin"', false);
$res->assertSee('待生效');
$res->assertSee('href="/admin/platform-orders?syncable_only=1"', false);
$res->assertSee('href="/admin/platform-orders?syncable_only=1&back=%2Fadmin"', false);
$res->assertSee('可同步');
$res->assertSee('href="/admin/platform-orders?sync_status=failed"', false);
$res->assertSee('href="/admin/platform-orders?sync_status=failed&back=%2Fadmin"', false);
$res->assertSee('同步失败');
}
}

View File

@@ -52,7 +52,7 @@ class AdminPlatformOrderTest extends TestCase
->assertSee('已退款')
->assertSee('退款数')
->assertSee('退款总额')
->assertSee('/admin/platform-orders?payment_status=paid&status=pending', false);
->assertSee('/admin/platform-orders?payment_status=paid&status=pending&sync_status=unsynced', false);
}
public function test_guest_cannot_open_platform_orders_page(): void