diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-05-20 20:58:36 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-20 16:38:32 -0500 |
commit | 7a8bd735478fb7dea2daa30bae10023e8e9fc77a (patch) | |
tree | 222c038a90b06ed350d6d560348da4785123c569 /tests/lib/App | |
parent | 3487f62d553303656047762ebfac1695412b5827 (diff) | |
download | nextcloud-server-7a8bd735478fb7dea2daa30bae10023e8e9fc77a.tar.gz nextcloud-server-7a8bd735478fb7dea2daa30bae10023e8e9fc77a.zip |
Fix tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests/lib/App')
-rw-r--r-- | tests/lib/App/AppManagerTest.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/lib/App/AppManagerTest.php b/tests/lib/App/AppManagerTest.php index bfb2893955f..c2c0ea55072 100644 --- a/tests/lib/App/AppManagerTest.php +++ b/tests/lib/App/AppManagerTest.php @@ -140,7 +140,7 @@ class AppManagerTest extends TestCase { $this->assertEquals('no', $this->appConfig->getValue( 'some_random_name_which_i_hope_is_not_an_app', 'enabled', 'no' )); - } + } public function testEnableAppForGroups() { $groups = array( @@ -333,6 +333,7 @@ class AppManagerTest extends TestCase { 'federatedfilesharing', 'files', 'lookup_server_connector', + 'oauth2', 'provisioning_api', 'test1', 'test3', @@ -358,11 +359,12 @@ class AppManagerTest extends TestCase { 'federatedfilesharing', 'files', 'lookup_server_connector', + 'oauth2', 'provisioning_api', 'test1', 'test3', 'twofactor_backupcodes', - 'workflowengine' + 'workflowengine', ]; $this->assertEquals($enabled, $this->manager->getEnabledAppsForUser($user)); } @@ -387,6 +389,7 @@ class AppManagerTest extends TestCase { 'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'], 'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'], 'workflowengine' => ['id' => 'workflowengine'], + 'oauth2' => ['id' => 'oauth2'], ]; $manager->expects($this->any()) @@ -395,7 +398,7 @@ class AppManagerTest extends TestCase { function($appId) use ($appInfos) { return $appInfos[$appId]; } - )); + )); $this->appConfig->setValue('test1', 'enabled', 'yes'); $this->appConfig->setValue('test1', 'installed_version', '1.0.0'); @@ -432,6 +435,7 @@ class AppManagerTest extends TestCase { 'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'], 'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'], 'workflowengine' => ['id' => 'workflowengine'], + 'oauth2' => ['id' => 'oauth2'], ]; $manager->expects($this->any()) @@ -440,7 +444,7 @@ class AppManagerTest extends TestCase { function($appId) use ($appInfos) { return $appInfos[$appId]; } - )); + )); $this->appConfig->setValue('test1', 'enabled', 'yes'); $this->appConfig->setValue('test2', 'enabled', 'yes'); |