summaryrefslogtreecommitdiffstats
path: root/install/ui/test/navigation_tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/test/navigation_tests.js')
-rw-r--r--install/ui/test/navigation_tests.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js
index d9bcc8eb6..9126fae3a 100644
--- a/install/ui/test/navigation_tests.js
+++ b/install/ui/test/navigation_tests.js
@@ -41,10 +41,14 @@ test("Testing IPA.navigation.create().", function() {
var entity;
var user_mock_called = false;
var group_mock_called = false;
+ //Force reset of entities
+ 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_name':'user'}));
+
that.setup = function(container){
user_mock_called = true;
same(container.attr('name'), 'user', 'user container name');