diff --git a/Tests/js/views/assets/ez-universaldiscoveryview-tests.js b/Tests/js/views/assets/ez-universaldiscoveryview-tests.js index cd75a2051..7d1d0eae1 100644 --- a/Tests/js/views/assets/ez-universaldiscoveryview-tests.js +++ b/Tests/js/views/assets/ez-universaldiscoveryview-tests.js @@ -619,6 +619,8 @@ YUI.add('ez-universaldiscoveryview-tests', function (Y) { this.config = {}; this.multiple = true; this.startingLocationId = 'l/o/c/a/t/i/o/n/i/d'; + this.startingLocation = {}; + this.virtualRootLocation = {}; Y.eZ.UniversalDiscoveryFinderView = Y.Base.create( 'testFinderView', Y.eZ.UniversalDiscoveryMethodBaseView, [], {} @@ -630,7 +632,9 @@ YUI.add('ez-universaldiscoveryview-tests', function (Y) { this.view = new Y.eZ.UniversalDiscoveryView({ multiple: this.multiple, confirmedListView: this.confirmedList, - startingLocationId: this.startingLocationId + startingLocationId: this.startingLocationId, + startingLocation: this.startingLocation, + virtualRootLocation: this.virtualRootLocation, }); }, @@ -669,6 +673,14 @@ YUI.add('ez-universaldiscoveryview-tests', function (Y) { this.startingLocationId, methods[0].get('startingLocationId'), "The startingLocationId should be passed to the method views" ); + Assert.areSame( + this.startingLocation, methods[0].get('startingLocation'), + "The startingLocation should be passed to the method views" + ); + Assert.areSame( + this.virtualRootLocation, methods[0].get('virtualRootLocation'), + "The virtualRootLocation should be passed to the method views" + ); }, "Should add the universal discovery view as a bubble target": function () {