diff options
| author | Géry Debongnie <ged@odoo.com> | 2018-04-24 14:37:14 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-04-24 14:37:14 +0200 |
| commit | 3b3f6cc0694b95cfbb0300cbff9aa6d9a3a6fe7e (patch) | |
| tree | a563772c68841c59dc37f14e7272615632dd5246 | |
| parent | 3412dae02d2a62a68d87ee4405279f564e827b0d (diff) | |
[FIX] mail: update test broken by forward port
The _mockMessageFetch method was changed in the mockserver in saas11.2.
The forward port then obviously broke this test, which depended on the
fact that it returns an empty list.
| -rw-r--r-- | addons/mail/static/tests/systray_tests.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/mail/static/tests/systray_tests.js b/addons/mail/static/tests/systray_tests.js index cdaec82a3a6..b6161453d33 100644 --- a/addons/mail/static/tests/systray_tests.js +++ b/addons/mail/static/tests/systray_tests.js @@ -221,6 +221,12 @@ QUnit.test('messaging menu widget: menu with no records', function (assert) { var messagingMenu = new systray.MessagingMenu(); testUtils.addMockEnvironment(messagingMenu, { services: this.services, + mockRPC: function (route, args) { + if (args.method === 'message_fetch') { + return $.when([]); + } + return this._super.apply(this, arguments); + } }); messagingMenu.appendTo($('#qunit-fixture')); messagingMenu.$('.dropdown-toggle').click(); |
