Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-03-22 13:24:16 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2017-03-22 13:24:16 +0300
commit8b94fbe0140918e6c330d7111f42d86f73f76744 (patch)
tree0bc881f693545c8a9e9b1f9083e93637a9cf59d8 /tests/lib/InfoXmlTest.php
parent5695a4ec9287775912b9df1b0038964543e257d1 (diff)
Add the AppContainer
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/InfoXmlTest.php')
-rw-r--r--tests/lib/InfoXmlTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/InfoXmlTest.php b/tests/lib/InfoXmlTest.php
index 4e75ca78203..18391a20c03 100644
--- a/tests/lib/InfoXmlTest.php
+++ b/tests/lib/InfoXmlTest.php
@@ -63,6 +63,14 @@ class InfoXmlTest extends TestCase {
$appPath = \OC_App::getAppPath($app);
\OC_App::registerAutoloading($app, $appPath);
+ //Add the appcontainer
+ $applicationClassName = \OCP\AppFramework\App::buildAppNamespace($app) . '\\AppInfo\\Application';
+ if (class_exists($applicationClassName)) {
+ $application = new $applicationClassName();
+ } else {
+ $application = new \OCP\AppFramework\App($app);
+ }
+
if (isset($appInfo['background-jobs'])) {
foreach ($appInfo['background-jobs'] as $job) {
$this->assertTrue(class_exists($job), 'Asserting background job "' . $job . '" exists');