summaryrefslogtreecommitdiffstats
path: root/hugolib/menu_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/menu_test.go')
-rw-r--r--hugolib/menu_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/menu_test.go b/hugolib/menu_test.go
index 6a8c89b95..253259af1 100644
--- a/hugolib/menu_test.go
+++ b/hugolib/menu_test.go
@@ -1,4 +1,4 @@
-// Copyright 2017 The Hugo Authors. All rights reserved.
+// Copyright 2019 The Hugo Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -83,9 +83,9 @@ Menu Main: {{ partial "menu.html" (dict "page" . "menu" "main") }}`,
s := h.Sites[0]
- require.Len(t, s.Menus, 2)
+ require.Len(t, s.Menus(), 2)
- p1 := s.RegularPages[0].Menus()
+ p1 := s.RegularPages()[0].Menus()
// There is only one menu in the page, but it is "member of" 2
require.Len(t, p1, 1)