summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install/ui/test/navigation_tests.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js
index 90e708ccb..6df1926c3 100644
--- a/install/ui/test/navigation_tests.js
+++ b/install/ui/test/navigation_tests.js
@@ -45,9 +45,15 @@ test("Testing IPA.navigation.create().", function() {
IPA.entities = $.ordered_map();
IPA.entity_factories.user = function() {
- var that = IPA.entity({name: 'user',
- metadata:IPA.metadata.objects.user});
- that.add_facet(IPA.search_facet({'entity':that}));
+ var that = IPA.entity({
+ name: 'user',
+ metadata:IPA.metadata.objects.user,
+ facets: [
+ {
+ type: 'search'
+ }
+ ]
+ });
that.display = function(container){
user_mock_called = true;