补强平台订单同步治理主链护栏

This commit is contained in:
萝卜
2026-03-19 02:37:02 +08:00
parent d12b3d986b
commit ed1a74c39b

View File

@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderQuickFiltersShouldKeepActivationToSyncGovernanceTripletTest 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_quick_filters_should_keep_activation_to_sync_governance_triplet(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertMatchesRegularExpression('/po-quickfilter-pending-effective[\s\S]*?待生效[\s\S]*?po-quickfilter-syncable[\s\S]*?可同步订阅[\s\S]*?po-quickfilter-sync-failed[\s\S]*?同步失败/u', $html);
}
}