summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-19 11:36:51 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-21 11:30:03 +0100
commitd001dbd2594b8d937d3ccaefa4ea7ab6452a0acc (patch)
tree828a57377e864e2dcf14a59d69486281e5cee81f
parentd04ec9221ccb33835ae2730bc003b93c2cfbbf4c (diff)
downloadnextcloud-server-d001dbd2594b8d937d3ccaefa4ea7ab6452a0acc.tar.gz
nextcloud-server-d001dbd2594b8d937d3ccaefa4ea7ab6452a0acc.zip
Adjust unit tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
-rw-r--r--core/js/tests/specs/sharedialogviewSpec.js18
-rw-r--r--tests/lib/AppTest.php8
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);