From d001dbd2594b8d937d3ccaefa4ea7ab6452a0acc Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Sat, 19 Nov 2016 11:36:51 +0100 Subject: [PATCH] Adjust unit tests Signed-off-by: Lukas Reschke --- core/js/tests/specs/sharedialogviewSpec.js | 18 ++++++++++++------ tests/lib/AppTest.php | 8 ++++++-- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/core/js/tests/specs/sharedialogviewSpec.js b/core/js/tests/specs/sharedialogviewSpec.js index 6e86cb8eff7..a44bb309c5c 100644 --- a/core/js/tests/specs/sharedialogviewSpec.js +++ b/core/js/tests/specs/sharedialogviewSpec.js @@ -529,7 +529,8 @@ describe('OC.Share.ShareDialogView', function() { }, 'users' : [{'label': 'bob', 'value': {'shareType': 0, 'shareWith': 'test'}}], 'groups' : [], - 'remotes': [] + 'remotes': [], + 'lookup': [] } } }); @@ -577,7 +578,8 @@ describe('OC.Share.ShareDialogView', function() { } ], 'groups': [], - 'remotes': [] + 'remotes': [], + 'lookup': [] } } }); @@ -635,7 +637,8 @@ describe('OC.Share.ShareDialogView', function() { } ], 'groups': [], - 'remotes': [] + 'remotes': [], + 'lookup': [] } } }); @@ -715,7 +718,8 @@ describe('OC.Share.ShareDialogView', function() { } ], 'groups': [], - 'remotes': [] + 'remotes': [], + 'lookup': [] } } }); @@ -765,7 +769,8 @@ describe('OC.Share.ShareDialogView', function() { } } ], - 'remotes': [] + 'remotes': [], + 'lookup': [] } } }); @@ -815,7 +820,8 @@ describe('OC.Share.ShareDialogView', function() { 'shareWith': 'foo2@bar.com/baz' } } - ] + ], + 'lookup': [] } } }); diff --git a/tests/lib/AppTest.php b/tests/lib/AppTest.php index 6017c029644..575e32dd60c 100644 --- a/tests/lib/AppTest.php +++ b/tests/lib/AppTest.php @@ -351,6 +351,7 @@ class AppTest extends \Test\TestCase { 'appforgroup12', 'dav', 'federatedfilesharing', + 'lookup_server_connector', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine', @@ -368,6 +369,7 @@ class AppTest extends \Test\TestCase { 'appforgroup2', 'dav', 'federatedfilesharing', + 'lookup_server_connector', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine', @@ -386,6 +388,7 @@ class AppTest extends \Test\TestCase { 'appforgroup2', 'dav', 'federatedfilesharing', + 'lookup_server_connector', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine', @@ -404,6 +407,7 @@ class AppTest extends \Test\TestCase { 'appforgroup2', 'dav', 'federatedfilesharing', + 'lookup_server_connector', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine', @@ -503,11 +507,11 @@ class AppTest extends \Test\TestCase { ); $apps = \OC_App::getEnabledApps(); - $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine'), $apps); + $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine'), $apps); // mock should not be called again here $apps = \OC_App::getEnabledApps(); - $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine'), $apps); + $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine'), $apps); $this->restoreAppConfig(); \OC_User::setUserId(null); -- 2.39.5