feat(platform-orders): 清除全部失败标记增加 YES 确认护栏

This commit is contained in:
萝卜
2026-03-10 23:27:05 +00:00
parent 3b59a72d13
commit 429c84bfc2
3 changed files with 21 additions and 2 deletions

View File

@@ -61,9 +61,16 @@ class AdminPlatformOrderClearSyncErrorsTest extends TestCase
],
]);
// scope=all 需要二次确认
$this->post('/admin/platform-orders/clear-sync-errors', ['scope' => 'all'])
->assertRedirect();
$order->refresh();
$this->assertNotEmpty(data_get($order->meta, 'subscription_activation_error.message'));
$this->post('/admin/platform-orders/clear-sync-errors', ['scope' => 'all', 'confirm' => 'YES'])
->assertRedirect();
$order->refresh();
$this->assertEmpty(data_get($order->meta, 'subscription_activation_error'));
}