统一平台资源中文展示并修复模拟订单状态
This commit is contained in:
@@ -83,3 +83,13 @@ func TestAdditionalScenarioIdentitiesDoNotOverlapBaseScenario(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TestMockGasorderInitialStatusMatchesWorkflow 验证 Mock 订单从文档定义的“已创建”状态起步。
|
||||
func TestMockGasorderInitialStatusMatchesWorkflow(t *testing.T) {
|
||||
if got := mockGasorderInitialStatus(); got != common.StatusCreated {
|
||||
t.Fatalf("Mock 订单初始状态 = %d, want %d", got, common.StatusCreated)
|
||||
}
|
||||
if mockGasorderInitialStatus() == common.StatusPending {
|
||||
t.Fatal("Mock 配送订单不得使用通用待处理状态")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user