平台订单工具区:治理筛选下增加操作顺序提示

This commit is contained in:
萝卜
2026-03-11 08:19:08 +00:00
parent 82dd58a8c5
commit 200c2cff5a
2 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderToolsGovernanceHintTest 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_tools_show_governance_hint_when_reconcile_mismatch_filter_present(): void
{
$this->loginAsPlatformAdmin();
$this->get('/admin/platform-orders?reconcile_mismatch=1')
->assertOk()
->assertSee('建议先完成金额/状态治理', false)
->assertSee('对账不一致', false);
}
public function test_platform_orders_tools_show_governance_hint_when_refund_inconsistent_filter_present(): void
{
$this->loginAsPlatformAdmin();
$this->get('/admin/platform-orders?refund_inconsistent=1')
->assertOk()
->assertSee('建议先完成金额/状态治理', false)
->assertSee('退款不一致', false);
}
}