diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-19 19:43:47 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-10-21 09:09:23 +0200 |
commit | 0b1fb180a53fc4e533e2f194977293bc509c5df3 (patch) | |
tree | d28abeb617a3eaf2bee8d97bd284fab126d4cd3f /tests | |
parent | 50b6ee67cb025332f1ec7012d3705150ef5a165a (diff) | |
download | nextcloud-server-0b1fb180a53fc4e533e2f194977293bc509c5df3.tar.gz nextcloud-server-0b1fb180a53fc4e533e2f194977293bc509c5df3.zip |
Make AppConfig part of the public API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/App/ManagerTest.php | 14 | ||||
-rw-r--r-- | tests/lib/AppTest.php | 9 |
2 files changed, 20 insertions, 3 deletions
diff --git a/tests/lib/App/ManagerTest.php b/tests/lib/App/ManagerTest.php index f3a91d4f5f4..e04f7c82375 100644 --- a/tests/lib/App/ManagerTest.php +++ b/tests/lib/App/ManagerTest.php @@ -306,7 +306,16 @@ class ManagerTest extends TestCase { $this->appConfig->setValue('test1', 'enabled', 'yes'); $this->appConfig->setValue('test2', 'enabled', 'no'); $this->appConfig->setValue('test3', 'enabled', '["foo"]'); - $apps = ['dav', 'federatedfilesharing', 'files', 'test1', 'test3', 'twofactor_backupcodes', 'workflowengine']; + $apps = [ + 'dav', + 'federatedfilesharing', + 'files', + 'provisioning_api', + 'test1', + 'test3', + 'twofactor_backupcodes', + 'workflowengine', + ]; $this->assertEquals($apps, $this->manager->getInstalledApps()); } @@ -325,6 +334,7 @@ class ManagerTest extends TestCase { 'dav', 'federatedfilesharing', 'files', + 'provisioning_api', 'test1', 'test3', 'twofactor_backupcodes', @@ -343,6 +353,7 @@ class ManagerTest extends TestCase { 'dav' => ['id' => 'dav'], 'files' => ['id' => 'files'], 'federatedfilesharing' => ['id' => 'federatedfilesharing'], + 'provisioning_api' => ['id' => 'provisioning_api'], 'test1' => ['id' => 'test1', 'version' => '1.0.1', 'requiremax' => '9.0.0'], 'test2' => ['id' => 'test2', 'version' => '1.0.0', 'requiremin' => '8.2.0'], 'test3' => ['id' => 'test3', 'version' => '1.2.4', 'requiremin' => '9.0.0'], @@ -386,6 +397,7 @@ class ManagerTest extends TestCase { 'dav' => ['id' => 'dav'], 'files' => ['id' => 'files'], 'federatedfilesharing' => ['id' => 'federatedfilesharing'], + 'provisioning_api' => ['id' => 'provisioning_api'], 'test1' => ['id' => 'test1', 'version' => '1.0.1', 'requiremax' => '8.0.0'], 'test2' => ['id' => 'test2', 'version' => '1.0.0', 'requiremin' => '8.2.0'], 'test3' => ['id' => 'test3', 'version' => '1.2.4', 'requiremin' => '9.0.0'], diff --git a/tests/lib/AppTest.php b/tests/lib/AppTest.php index ea4f328b63a..b7263adb78b 100644 --- a/tests/lib/AppTest.php +++ b/tests/lib/AppTest.php @@ -317,6 +317,7 @@ class AppTest extends \Test\TestCase { 'appforgroup12', 'dav', 'federatedfilesharing', + 'provisioning_api', 'twofactor_backupcodes', 'workflowengine', ), @@ -333,6 +334,7 @@ class AppTest extends \Test\TestCase { 'appforgroup2', 'dav', 'federatedfilesharing', + 'provisioning_api', 'twofactor_backupcodes', 'workflowengine', ), @@ -350,6 +352,7 @@ class AppTest extends \Test\TestCase { 'appforgroup2', 'dav', 'federatedfilesharing', + 'provisioning_api', 'twofactor_backupcodes', 'workflowengine', ), @@ -367,6 +370,7 @@ class AppTest extends \Test\TestCase { 'appforgroup2', 'dav', 'federatedfilesharing', + 'provisioning_api', 'twofactor_backupcodes', 'workflowengine', ), @@ -384,6 +388,7 @@ class AppTest extends \Test\TestCase { 'appforgroup2', 'dav', 'federatedfilesharing', + 'provisioning_api', 'twofactor_backupcodes', 'workflowengine', ), @@ -463,11 +468,11 @@ class AppTest extends \Test\TestCase { ); $apps = \OC_App::getEnabledApps(); - $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'twofactor_backupcodes', 'workflowengine'), $apps); + $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine'), $apps); // mock should not be called again here $apps = \OC_App::getEnabledApps(); - $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'twofactor_backupcodes', 'workflowengine'), $apps); + $this->assertEquals(array('files', 'app3', 'dav', 'federatedfilesharing', 'provisioning_api', 'twofactor_backupcodes', 'workflowengine'), $apps); $this->restoreAppConfig(); \OC_User::setUserId(null); |