优化结构
This commit is contained in:
@@ -7,10 +7,10 @@ func TestDefinitionOwnsPaymentContributions(t *testing.T) {
|
||||
if definition.Name != "payment" {
|
||||
t.Fatalf("name = %q, want payment", definition.Name)
|
||||
}
|
||||
if len(definition.Migrations) != 1 {
|
||||
t.Fatalf("migrations = %d, want 1", len(definition.Migrations))
|
||||
if len(definition.Migrations) != 4 {
|
||||
t.Fatalf("migrations = %d, want 4", len(definition.Migrations))
|
||||
}
|
||||
if len(definition.Surface.Menus) != 2 || len(definition.Surface.APIs) != 10 {
|
||||
t.Fatalf("surface = %d menus/%d APIs, want 2/10", len(definition.Surface.Menus), len(definition.Surface.APIs))
|
||||
if len(definition.Surface.Menus) != 2 || len(definition.Surface.APIs) != 12 {
|
||||
t.Fatalf("surface = %d menus/%d APIs, want 2/12", len(definition.Surface.Menus), len(definition.Surface.APIs))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user