From: Roeland Jago Douma Date: Wed, 22 Mar 2017 10:24:16 +0000 (+0100) Subject: Add the AppContainer X-Git-Tag: v12.0.0beta1~342^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b94fbe0140918e6c330d7111f42d86f73f76744;p=nextcloud-server.git Add the AppContainer Signed-off-by: Roeland Jago Douma --- 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');