feat(platform-orders): 清除全部失败标记增加 YES 确认护栏
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user